Back to QuestionsPractice with This Question
Binary Tree Preorder Traversal (Iterative)
33.3K views•Asked 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.