LeetCode 530 โ Minimum Absolute Difference in BST (Java Solution Explained)
๐ Problem Recap
We are given the root of a Binary Search Tree (BST).Goal โ return the minimum absolute difference between values of any two different nodes.
Constraints:
2 โค n โค 10^4
0 โค val โค 10^5
Example:
Input: root = [4,2,6,1,3]
Output: 1
...
leetlog-by-chao.hashnode.dev2 min read