2017年7月6日

摘要: leetcode 279. Perfect Squares Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to 阅读全文
posted @ 2017-07-06 17:34 sure0328 阅读(80) 评论(0) 推荐(0)
摘要: leetcode 264. Ugly Number II Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. 阅读全文
posted @ 2017-07-06 16:33 sure0328 阅读(90) 评论(0) 推荐(0)
摘要: leetcode 152. Maximum Product Subarray Find the contiguous subarray within an array (containing at least one number) which has the largest product. Fo 阅读全文
posted @ 2017-07-06 15:59 sure0328 阅读(75) 评论(0) 推荐(0)
摘要: leetcode 120. Triangle Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. Fo 阅读全文
posted @ 2017-07-06 10:09 sure0328 阅读(90) 评论(0) 推荐(0)
摘要: leetcode 304. Range Sum Query 2D - Immutable Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left cor 阅读全文
posted @ 2017-07-06 09:23 sure0328 阅读(130) 评论(0) 推荐(0)

导航