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