摘要: You are given an integer array target and an integer n. You have an empty stack with the two following operations: "Push": pushes an integer to the to 阅读全文
posted @ 2020-05-11 14:38 CNoodle 阅读(435) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2020-05-11 09:28 CNoodle 阅读(233) 评论(0) 推荐(0)
摘要: In a town, there are n people labeled from 1 to n. There is a rumor that one of these people is secretly the town judge. If the town judge exists, the 阅读全文
posted @ 2020-05-11 06:46 CNoodle 阅读(249) 评论(0) 推荐(0)