Find Celebrity
This one is from leetcode. http://www.cnblogs.com/easonliu/p/4785253.html Suppose you are at a party with n people (labeled from 0 to n – 1) and among them, there may exist one celebrity. The definition of a celebrity is that all the other n – 1people know him/her but he/she does not know any of them. Now you… Read More »