Skip to content

Commit 8b80c15

Browse files
authored
Update median-of-two-sorted-arrays.cpp
1 parent cdb330e commit 8b80c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/median-of-two-sorted-arrays.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Solution {
2727
}
2828

2929
// Find a partition of A and B
30-
// where min left s.t. A[left] >= B[k - 1 - left]. Thus A[left] is the (k+1)-th or above element.
30+
// where min i s.t. A[i] >= B[k - 1 - i]. Thus A[i] is the (k+1)-th or above element.
3131
const int i = binary_search(0, min(m, k) - 1, [&](int i) {
3232
return 0 <= k - 1 - i && k - 1 - i < n && A[i] >= B[k - 1 - i];
3333
});

0 commit comments

Comments
 (0)