AlgoMaster Logo

Binary Tree Paths

tree=[1, 2, 3, 4, 5]
0 / 16
12345pathpathscollect every root-to-leaf path
algomaster.io
Step:Start: collect every root-to-leaf path