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.
0
Mid March, 2025
Meta
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.