贪心
文章平均质量分 62
Juxin_Lin
这个作者很懒,什么都没留下…
展开
-
【LeetCode】55. Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine i原创 2017-01-08 10:30:12 · 236 阅读 · 0 评论 -
【LeetCode】45. Jump Game II
Difficulty: Hard Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that po原创 2017-01-14 16:39:09 · 275 阅读 · 0 评论 -
【LeetCode】122. Best Time to Buy and Sell Stock II
Difficulty: Medium Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete as many transact原创 2017-01-14 16:45:58 · 318 阅读 · 0 评论 -
【LeetCode】3. Longest Substring Without Repeating Characters
Difficulty: Medium Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the length is 3. Gi原创 2017-01-14 16:55:32 · 416 阅读 · 0 评论