mirror of
				https://github.com/krahets/hello-algo.git
				synced 2025-11-04 14:18:20 +08:00 
			
		
		
		
	Update binary tree (JS).
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/pull_request_template.md
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/pull_request_template.md
									
									
									
									
										vendored
									
									
								
							@ -1,6 +1,4 @@
 | 
				
			|||||||
> Tip: If this PR is not related to the coding or code translation, please ignore the checklist.
 | 
					If this PR is related to coding or code translation, please fill out the checklist.
 | 
				
			||||||
 | 
					 | 
				
			||||||
### Checklist
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- [ ] I've tested the code and ensured the outputs are the same as the outputs of reference codes.
 | 
					- [ ] I've tested the code and ensured the outputs are the same as the outputs of reference codes.
 | 
				
			||||||
- [ ] I've checked the codes (formatting, comments, indentation, file header, etc) carefully.
 | 
					- [ ] I've checked the codes (formatting, comments, indentation, file header, etc) carefully.
 | 
				
			||||||
 | 
				
			|||||||
@ -29,31 +29,24 @@ $$
 | 
				
			|||||||
首先,我们先采用“双闭区间”的表示,在数组 `nums` 中查找目标元素 `target` 的对应索引。
 | 
					首先,我们先采用“双闭区间”的表示,在数组 `nums` 中查找目标元素 `target` 的对应索引。
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=== "Step 1"
 | 
					=== "Step 1"
 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=== "Step 2"
 | 
					=== "Step 2"
 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=== "Step 3"
 | 
					=== "Step 3"
 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=== "Step 4"
 | 
					=== "Step 4"
 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=== "Step 5"
 | 
					=== "Step 5"
 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=== "Step 6"
 | 
					=== "Step 6"
 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
=== "Step 7"
 | 
					=== "Step 7"
 | 
				
			||||||
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
二分查找“双闭区间”表示下的代码如下所示。
 | 
					二分查找“双闭区间”表示下的代码如下所示。
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user