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

Method height

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

Source from the content-addressed store, hash-verified

10 node *root;
11 inline int sz(node *n) const { return n ? n->size : 0; }
12 inline int height(node *n) const {
13 return n ? n->height : -1; }
14 inline bool left_heavy(node *n) const {
15 return n && height(n->l) > height(n->r); }
16 inline bool right_heavy(node *n) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected