Amazon Interview Question

flattening a tree to a file

Interview Answer

Anonymous

Apr 26, 2012

breadth first search with zero padding for no child nodes, so that reconstructing the tree could be easy