Skip to content
LEETFLIX

type

Binary Search Tree LeetCode problems — visual solutions

Every LeetCode problem tagged Binary Search Tree — the full catalogue, plus animated visual solutions in Python and Go when a deep-dive exists.

43 problems · 30 animated · 13 locked

Full BST index

  1. 95Unique Binary Search Trees IIWatch
  2. 96Unique Binary Search TreesWatch
  3. 98Validate Binary Search TreeWatch
  4. 99Recover Binary Search TreeWatch
  5. 108Convert Sorted Array to Binary Search TreeWatch
  6. 109Convert Sorted List to Binary Search TreeWatch
  7. 173Binary Search Tree IteratorWatch
  8. 230Kth Smallest Element in a BSTWatch
  9. 235Lowest Common Ancestor of a Binary Search TreeWatch
  10. 255Verify Preorder Sequence in Binary Search TreeLocked
  11. 270Closest Binary Search Tree ValueLocked
  12. 272Closest Binary Search Tree Value IILocked
  13. 285Inorder Successor in BSTLocked
  14. 333Largest BST SubtreeLocked
  15. 426Convert Binary Search Tree to Sorted Doubly Linked ListLocked
  16. 449Serialize and Deserialize BSTWatch
  17. 450Delete Node in a BSTWatch
  18. 501Find Mode in Binary Search TreeWatch
  19. 510Inorder Successor in BST IILocked
  20. 530Minimum Absolute Difference in BSTWatch
  21. 538Convert BST to Greater TreeWatch
  22. 653Two Sum IV - Input is a BSTWatch
  23. 669Trim a Binary Search TreeWatch
  24. 700Search in a Binary Search TreeWatch
  25. 701Insert into a Binary Search TreeWatch
  26. 703Kth Largest Element in a StreamWatch
  27. 776Split BSTLocked
  28. 783Minimum Distance Between BST NodesWatch
  29. 897Increasing Order Search TreeWatch
  30. 938Range Sum of BSTWatch
  31. 1008Construct Binary Search Tree from Preorder TraversalWatch
  32. 1038Binary Search Tree to Greater Sum TreeWatch
  33. 1214Two Sum BSTsLocked
  34. 1305All Elements in Two Binary Search TreesWatch
  35. 1373Maximum Sum BST in Binary TreeWatch
  36. 1382Balance a Binary Search TreeWatch
  37. 1569Number of Ways to Reorder Array to Get Same BSTWatch
  38. 1586Binary Search Tree Iterator IILocked
  39. 1902Depth of BST Given Insertion OrderLocked
  40. 1932Merge BSTs to Create Single BSTWatch
  41. 2476Closest Nodes Queries in a Binary Search TreeWatch
  42. 3526Range XOR Queries with Subarray ReversalsLocked
  43. 3831Median of a Binary Search Tree LevelLocked