Loading page…
Interview problems treat a walk of a tree as the tree: a subtree test, a flatten, a repair of a search tree and a save and load. The move is to walk in a fixed order and mark the empty children. The lecture covers separators, the size of a walk and the falls in an inorder walk.
The problems on this street ask: is one tree inside another, flatten a tree into a chain, repair a search tree with two swapped values, count the search trees of some keys, and save a tree and load it back.