Back to Question

Binary Tree Preorder Traversal (Iterative)

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

Click "Start Speaking" and answer the question naturally.