Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commit 8de0aac

Browse files
✨update: Modify 373
1 parent 2c08a09 commit 8de0aac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎LeetCode/371-380/373. 查找和最小的K对数字(中等).md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class Solution {
220220
c = r;
221221
l = 0; r = m - 1;
222222
while (l < r) {
223-
int mid = l + r + 1 >> 1;
223+
int mid = (int)(0L+l + r + 1) >> 1;
224224
if (nums2[mid] <= b) l = mid;
225225
else r = mid - 1;
226226
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /