AlgoMaster Logo

Binary Tree Preorder Traversal

tree=[4, 2, 5, 1, 3]
0 / 20
42513stackresultpreorder: root then left then right
algomaster.io
Step:Start: preorder traversal (root, left, right) with a stack