Back to all patterns

BST Properties

2 problems • Practice on LeetCode to earn credits

About This Pattern

Master the BST Properties pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Medium (2)

Lowest Common Ancestor of a Binary Search Tree

Find the LCA of two nodes in a BST.

Key Signals:

Use BST orderingFind split pointCompare with node values
Inorder Successor in BST II

Find in-order successor of a node in BST where nodes have parent pointers.

Key Signals:

Parent pointersIn-order successorBST traversal