Fork me on GitHub
摘要: You are given several logs that each log contains a unique id and timestamp. Timestamp is a string that has the following format: Year:Month:Day:Hour: 阅读全文
posted @ 2017-07-02 19:54 hellowOOOrld 阅读(447) 评论(0) 推荐(0)
摘要: Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Example 2: 思路: 类似于二分查找。 阅读全文
posted @ 2017-07-02 12:06 hellowOOOrld 阅读(421) 评论(0) 推荐(0)
摘要: In combinatorial mathematics, a derangement is a permutation of the elements of a set, such that no element appears in its original position. There's 阅读全文
posted @ 2017-07-02 11:45 hellowOOOrld 阅读(728) 评论(0) 推荐(0)