Skip to content

Commit 0011b95

Browse files
authored
Update online-majority-element-in-subarray.cpp
1 parent 4ac60a8 commit 0011b95

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

C++/online-majority-element-in-subarray.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ class MajorityChecker3 {
159159
return {-1, -1};
160160
}
161161
if (range_left <= left && right <= range_right) {
162-
cout << idx << endl;
163162
if (tree_[idx] != -1) {
164163
const auto& c = count_(tree_[idx], range_left, range_right);
165164
if (c * 2 > range_right - range_left + 1) {

0 commit comments

Comments
 (0)