Skip to content

Commit 02a4651

Browse files
authored
Update guess-the-majority-in-a-hidden-array.cpp
1 parent 8fffa42 commit 02a4651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/guess-the-majority-in-a-hidden-array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Solution {
2525
}
2626
a_b.emplace_back(j);
2727
}
28-
int value_a_b_3_4 = reader.query(a_b[0], a_b[1], 3, 4);
28+
const auto& value_a_b_3_4 = reader.query(a_b[0], a_b[1], 3, 4);
2929
if (value_a_b_3_4 == value_0_1_2_4) { // nums[i] == nums[3]
3030
++count_a;
3131
} else {

0 commit comments

Comments
 (0)