Search
⌘K

Leetcode 530. Minimum Absolute Difference in BST

Given the root of a BST, find the minimum absolute difference between values of any two different nodes. Use the BST property (in-order yields sorted values) and compare adjacent elements to compute the smallest gap.

Asked at:

Meta


Question Timeline

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

Mid March, 2025

Meta

Senior

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