Loading page…
A notes app must save its folder tree to a file and load it back. One walk loses the shape, so the lecture shows three fixes: a mark for every missing child, two walks with a split at the root, and the preorder of a search tree. It covers saving with marks, loading with a stack of waiting nodes, the split with a map, the postorder root, the costs and the classic mistakes.
A notes app keeps its folders in a tree.