Binary tree
easy 18 minA binary tree is a hierarchy of nodes where each node has at most two children, left and right, hanging from a single root.
A binary tree toolkit
Read it, run it, change a line and run it again.
Loading editor…
Build from a level-order list, measure, classify and traverse. Every function is O(n) except count_complete, which is O(log² n).