![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
刷题
文章平均质量分 80
yiayia070614
在阿里做苹果业务
展开
-
LeetCode 309.--Best Time to Buy and Sell Stock with Cooldown
309. Best Time to Buy and Sell Stock with CooldownSay you have an array for which the ith element is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may原创 2016-09-09 14:51:02 · 174 阅读 · 0 评论 -
Leetcode 3--Longest Substring Without Repeating Characters
Leetcode 3--Add Two NumbersGiven 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 · 163 阅读 · 0 评论 -
LeetCode 13 -- Roman to Integer
LeetCode 13 -- Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999Subscribe to see which companies asked this question原创 2016-09-05 19:54:47 · 190 阅读 · 0 评论 -
LeetCode -- 63 Unique Paths II
LeetCode -- 63 Unique Paths IIFollow 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 · 259 阅读 · 0 评论 -
LeetCode -- 62 Unique Paths
LeetCode -- 62 Unique PathsA 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 · 187 阅读 · 0 评论 -
LeetCode 38 -- Count and Say
LeetCode 38 -- Count and SayThe 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 · 209 阅读 · 0 评论