Recent posts

Convert BST to Greater Tree

1 minute read

Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys gr...