MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / erase

Method erase

code/data-structures/misof_tree.cpp:7–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5 void insert(int x) {
6 for (int i = 0; i < BITS; cnt[i++][x]++, x >>= 1); }
7 void erase(int x) {
8 for (int i = 0; i < BITS; cnt[i++][x]--, x >>= 1); }
9 int nth(int n) {
10 int res = 0;
11 for (int i = BITS-1; i >= 0; i--)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected