Find all paths in a binary tree

前端 未结 0 1934
星月不相逢
星月不相逢 2020-11-22 15:56

I am trying to solve the coding question of "Given a binary tree, return all root-to-leaf paths."

Input:

   1
 /   \\
2     3
 \\
  5

Output: [&qu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题