Skip to content

Commit 9cb53f3

Browse files
authored
Fix naming in comments.
1 parent 2f5e0bf commit 9cb53f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/num_methods/binary_search.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ vector<int> ParallelBinarySearch(vector<int>& A, vector<int>& X) {
175175
// Map to store indices of queries asking for this value.
176176
unordered_map<int, vector<int>> mid_to_queries;
177177

178-
// Calculate mid and populate the important_values map.
178+
// Calculate mid and populate the mid_to_queries map.
179179
for (int i = 0; i < M; ++i) {
180180
int mid = (left[i] + right[i]) / 2;
181181
mid_to_queries[mid].push_back(i);
182182
}
183183

184-
// Process each value in important_values.
184+
// Process each value in mid_to_queries.
185185
for (const auto& [mid, queries]: mid_to_queries) {
186186
for (int query : queries) {
187187
if (A[mid] > X[query]) {

0 commit comments

Comments
 (0)