Search
⌘K

Leetcode 450. Delete Node in a BST

Delete the node with a given key from a BST while preserving BST order: search down O(height) to find the node and then handle the three cases (no child, one child, or two children — replace with inorder successor/predecessor) to return the updated root.

Asked at:

Pinterest

LinkedIn

LinkedIn


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid May, 2025

Pinterest

Senior

Late February, 2025

LinkedIn

LinkedIn

Mid-level

Comments

Your account is free and you can post anonymously if you choose.