Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_pair
Function · 0.45
test
Function · 0.45
erase
Function · 0.45
rec
Function · 0.45
test
Function · 0.45
intx
Class · 0.45
nth_permutation
Function · 0.45
euler
Function · 0.45
min_cost_max_flow
Method · 0.45
dijkstra
Function · 0.45
Calls
2
find
Function · 0.85
erase
Function · 0.70
Tested by
3
test
Function · 0.36
rec
Function · 0.36
test
Function · 0.36