Back to Questions

Minimum Absolute Difference in BST

85.6K viewsAsked 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.

Practice with This Question