Run to execute this JavaScript code for real (output appears here).
Ready.
Recursively visits the left subtree, then the node itself, then the right subtree (Left → Root → Right). On a Binary Search Tree this produces the values in sorted order. Press Run (Ctrl + Enter) to animate, or Step forward (F10) to go one event at a time.
Step
1 / 67
Line (JavaScript)
—
Recursive calls
1
result = []