Fork me on GitHub
摘要: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi 阅读全文
posted @ 2017-05-21 17:12 hellowOOOrld 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Given a string representing an expression of fraction addition and subtraction, you need to return the calculation result in string format. The final 阅读全文
posted @ 2017-05-21 12:15 hellowOOOrld 阅读(548) 评论(0) 推荐(0) 编辑
摘要: Given the coordinates of four points in 2D space, return whether the four points could construct a square.The coordinate (x,y) of a point is represent 阅读全文
posted @ 2017-05-21 11:41 hellowOOOrld 阅读(262) 评论(0) 推荐(0) 编辑
摘要: We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1.Now, given an integer array 阅读全文
posted @ 2017-05-21 11:37 hellowOOOrld 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Description:Count the number of prime numbers less than a non-negative number, n. 思路: 参考http://www.cnblogs.com/TonyYPZhang/p/5138018.html给出的方案以及wiki的方 阅读全文
posted @ 2017-05-21 00:00 hellowOOOrld 阅读(143) 评论(0) 推荐(0) 编辑