摘要: Maximal Square Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. For example, given th 阅读全文
posted @ 2016-02-28 21:23 `Liok 阅读(463) 评论(0) 推荐(0)
摘要: Perfect Squares Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. For exampl 阅读全文
posted @ 2016-02-28 20:58 `Liok 阅读(538) 评论(0) 推荐(0)
摘要: Count Prime Description: Count the number of prime numbers less than a non-negative number, n. https://leetcode.com/problems/count-primes/ 找出所有小于n的数中的 阅读全文
posted @ 2016-02-28 15:53 `Liok 阅读(526) 评论(0) 推荐(0)
摘要: Happy Number Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any po 阅读全文
posted @ 2016-02-28 00:17 `Liok 阅读(769) 评论(0) 推荐(0)