AlgoPrecision

Tree Visualizer

Binary Search Trees

Build a BST, trace search decisions, and step through inorder traversal with highlighted nodes and synced pseudocode.

O(n)
4218672991543673

Step Note

Start inorder traversal from the root.

Details
function inorder(node: Node | null) {
  if (!node) return
  inorder(node.left)
  visit(node)
  inorder(node.right)
}