
刷题
文章平均质量分 75
yiayia070614
在阿里做苹果业务
展开
-
LeetCode 309.--Best Time to Buy and Sell Stock with Cooldown
309. Best Time to Buy and Sell Stock with Cooldown 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原创 2016-09-09 14:51:02 · 203 阅读 · 0 评论 -
Leetcode 3--Longest Substring Without Repeating Characters
Leetcode 3--Add Two Numbers 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原创 2016-09-05 18:40:37 · 193 阅读 · 0 评论 -
LeetCode 13 -- Roman to Integer
LeetCode 13 -- Roman to Integer Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999 Subscribe to see which companies asked this question原创 2016-09-05 19:54:47 · 214 阅读 · 0 评论 -
LeetCode -- 63 Unique Paths II
LeetCode -- 63 Unique Paths II Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1原创 2016-09-07 16:35:28 · 296 阅读 · 0 评论 -
LeetCode -- 62 Unique Paths
LeetCode -- 62 Unique Paths A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time.原创 2016-09-07 16:48:35 · 216 阅读 · 0 评论 -
LeetCode 38 -- Count and Say
LeetCode 38 -- Count and Say The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as原创 2016-09-07 23:38:46 · 236 阅读 · 0 评论