Back to Questions

Binary Tree Preorder Traversal (Iterative)

33.3K viewsAsked at Uber
Medium

Question Explain

Given the root of a binary tree, return the preorder traversal of its nodes' values. Implement the solution iteratively using a stack.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question