Count pairs from 2 BST whose sum is equal to given value X

1 min read

https://practice.geeksforgeeks.org/problems/brothers-from-different-root/1

Find Kth smallest element in a BST
Find the median of BST in O(n) time and O(1) space