auto commit
This commit is contained in:
parent
d70cf4669d
commit
4012e90b67
|
@ -105,8 +105,8 @@ public class ThreeSumFast {
|
|||
while (l <= h) {
|
||||
int m = l + (h - l) / 2;
|
||||
if (target == nums[m]) return m;
|
||||
else if (target > nums[m]) h = m - 1;
|
||||
else l = m + 1;
|
||||
else if (target > nums[m]) l = m + 1;
|
||||
else h = m - 1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user