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

Method avl_tree

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

Source from the content-addressed store, hash-verified

7 node(const T &_item, node *_p = NULL) : item(_item), p(_p),
8 l(NULL), r(NULL), size(1), height(0) { } };
9 avl_tree() : root(NULL) { }
10 node *root;
11 inline int sz(node *n) const { return n ? n->size : 0; }
12 inline int height(node *n) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected