- 博客(3)
- 收藏
- 关注
原创 Leetcode 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 complete as many transactions as you like (ie, buy on
2016-01-28 13:21:10 308
原创 Leetcode Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[1,1,2], [1,2,1], and [2,1,1].
2016-01-28 13:19:08 165
原创 Leetcode Regular Expression Matching
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input st
2016-01-28 13:15:46 249
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人