Meta Interview Question

Print the every path of a binary tree

Interview Answer

Anonymous

Aug 6, 2018

Basically just do DFS adding every time what you saw to your path and checking when you get to a leaf, if that's the case, add the path to your solution.