Welcome to the daily solving of our PROBLEM OF THE DAY with Nitin Kaplas. We will discuss the entire problem step-by-step and work towards developing an optimized solution. This will not only help you brush up on your concepts of BST but also build up problem-solving skills.
In this problem, we are given a binary search tree having n (n>1) nodes, the task is to find the minimum absolute difference between any two nodes.
Give the problem a try before going through the video. All the best!!!
Problem Link: https://www.geeksforgeeks.org/problems/minimum-absolute-difference-in-bst-1665139652/1