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

Method misof_tree

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

Source from the content-addressed store, hash-verified

2struct misof_tree {
3 int cnt[BITS][1<<BITS];
4 misof_tree() { memset(cnt, 0, sizeof(cnt)); }
5 void insert(int x) {
6 for (int i = 0; i < BITS; cnt[i++][x]++, x >>= 1); }
7 void erase(int x) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected