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

Method erase

code/data-structures/avl_tree.cpp:74–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 node *n = new node(item, prev);
73 *cur = n, fix(n); return n; }
74 void erase(const T &item) { erase(find(item)); }
75 void erase(node *n, bool free = true) {
76 if (!n) return;
77 if (!n->l && n->r) parent_leg(n) = n->r, n->r->p = n->p;

Callers 10

closest_pairFunction · 0.45
testFunction · 0.45
eraseFunction · 0.45
recFunction · 0.45
testFunction · 0.45
intxClass · 0.45
nth_permutationFunction · 0.45
eulerFunction · 0.45
min_cost_max_flowMethod · 0.45
dijkstraFunction · 0.45

Calls 2

findFunction · 0.85
eraseFunction · 0.70

Tested by 3

testFunction · 0.36
recFunction · 0.36
testFunction · 0.36