2017年7月7日

摘要: Given an unsorted array of integers, find the length of longest increasing subsequence. For example,Given [10, 9, 2, 5, 3, 7, 101, 18],The longest inc 阅读全文
posted @ 2017-07-07 13:46 sure0328 阅读(63) 评论(0) 推荐(0)

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)

2017年7月5日

摘要: leetcode 303. Range Sum Query - Immutable Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Exampl 阅读全文
posted @ 2017-07-05 16:17 sure0328 阅读(123) 评论(0) 推荐(0)

2017年7月4日

摘要: leetcode 91. Decode Ways A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message conta 阅读全文
posted @ 2017-07-04 09:53 sure0328 阅读(91) 评论(0) 推荐(0)
摘要: leetcode 213. House Robber II Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new 阅读全文
posted @ 2017-07-04 09:15 sure0328 阅读(95) 评论(0) 推荐(0)

2017年7月3日

摘要: leetcode 198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the 阅读全文
posted @ 2017-07-03 17:57 sure0328 阅读(81) 评论(0) 推荐(0)

导航