Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 51d7849

Browse filesBrowse files
authored
Update Searching.java
1 parent 96a0e9a commit 51d7849
Copy full SHA for 51d7849

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/com/company/Lecture5/Searching.java

Copy file name to clipboardExpand all lines: src/com/company/Lecture5/Searching.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static int binary ( int[] nums, int target){
3333
if ( target == nums[mid]){
3434
return mid;
3535
}
36-
else if( target < mid){
36+
else if( target < nums[mid]){
3737
end = mid-1;
3838
}
3939
else {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.