Skip to content

Commit 2293172

Browse files
committed
remove these actually
1 parent 040cc2d commit 2293172

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

library/data_structures/bit_uncommon/next.hpp

Lines changed: 0 additions & 3 deletions
This file was deleted.

library/data_structures/bit_uncommon/prev.hpp

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/library_checker_aizu_tests/data_structures/bit_ordered_set.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ int main() {
4949
cout << bit.query(x) << '\n';
5050
} else if (type == 4) {
5151
x = get_compressed_idx(x);
52-
int res = bit.prev(x);
52+
int res = bit.walk(bit.query(x));
5353
if (res == -1) cout << -1 << '\n';
5454
else cout << compress[res] << '\n';
5555
} else {
5656
x = get_compressed_idx(x);
57-
int res = bit.next(x);
57+
int res = bit.walk(bit.query(x - 1)) + 1;
5858
if (res == ssize(bit.s)) cout << -1 << '\n';
5959
else cout << compress[res] << '\n';
6060
}

0 commit comments

Comments
 (0)