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

Method insert

code/data-structures/kd_tree.cpp:60–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 if (cmp(c)(n->p, p)) return _con(p, n->r, INC(c));
59 return true; }
60 void insert(const pt &p) { _ins(p, root, 0); }
61 void _ins(const pt &p, node* &n, int c) {
62 if (!n) n = new node(p, NULL, NULL);
63 else if (cmp(c)(p, n->p)) _ins(p, n->l, INC(c));

Callers 5

testFunction · 0.45
splitFunction · 0.45
insertFunction · 0.45
avl_mapClass · 0.45
testFunction · 0.45

Calls

no outgoing calls

Tested by 2

testFunction · 0.36
testFunction · 0.36