LogoTurtle is the first and currently only one Chrome Extension for Logo Programming. I personally use this tool to teach my sons the turtle graphics. This is probably the …
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 …
Globally more and more people are surfing the Internet with the help of smartphones and tablets. The percentage of such visitors are consistently going up. It is time that …
In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times. Example …
Given a binary tree like this: 8 / \ 6 10 / \ / \ 5 7 9 11 Your task is to mirror it which becomes this: 8 …
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. You may assume k is always valid, 1 ≤ k ≤ BST’s …