Replace every element with the least greater element on its right

1 min read

https://www.geeksforgeeks.org/replace-every-element-with-the-least-greater-element-on-its-right/

Count BST nodes that lie in a given range
Given N appointments, find the conflicting appointments