how to solve this question. not able to understand through the online available solutions.
How to find Minimum Absolute Difference in BST?
There are many approaches, one of them is:
store inorder traversal of BST in an array/vector and your answer is simply a[i]-a[i-1] for i from 1 to n-1.