Problem bank
MediumTreesNeetCode 150 · #57/150

Kth Smallest Element in a BST

  1. 1
    Learn the pattern

    Pick the traversal first: inorder for BST order, level-order for depth, postorder to bubble info up.

  2. 2
    Watch it run

    See this exact pattern animated step by step before you touch the keyboard.

    Open visualizer
  3. 3
    Solve it

    Solve it on LeetCode, then mark it solved here to keep your streak alive.

Validate Binary Search TreeConstruct Binary Tree from Preorder and Inorder