Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Recursively visit left and right children first, then process the current node.
Each node is pushed only after both subtrees are complete, which is why this order is used for post-processing.
Updated Feb 2026