Count BST nodes that lie in a given range

1 min read

https://practice.geeksforgeeks.org/problems/count-bst-nodes-that-lie-in-a-given-range/1

Find the median of BST in O(n) time and O(1) space
Replace every element with the least greater element on its right