Back to QuestionsPractice with This Question
Minimum Absolute Difference in BST
85.6K views•Asked at Uber•
Easy
Question Explain
Given the root of a BST, return the minimum absolute difference between the values of any two different nodes in the tree. Use the property that in-order traversal of a BST is sorted.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.