Skip to content

Commit 5b4e4df

Browse files
authored
Unify sides in conditions.
1 parent 9cb53f3 commit 5b4e4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/num_methods/binary_search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ vector<int> ParallelBinarySearch(vector<int>& A, vector<int>& X) {
184184
// Process each value in mid_to_queries.
185185
for (const auto& [mid, queries]: mid_to_queries) {
186186
for (int query : queries) {
187-
if (A[mid] > X[query]) {
187+
if (X[query] < A[mid]>) {
188188
right[query] = mid;
189189
} else {
190190
left[query] = mid;

0 commit comments

Comments
 (0)