[email protected]
Peng
But recursion may get stack overflow, doesn't it?
Then why does the question mention the size of the tree? Is it just useless or some kinda clue?