Author: ACMer
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 …
Due to an API change in SteemIt see this post, the following code to get the last vote time is not working any more – as it says the …