- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 118. Pascal's Triangle 简单数组问题
118. Pascal's Triangle My SubmissionsQuestionEditorial SolutionTotal Accepted: 85485 Total Submissions: 253159 Difficulty: EasyGiven numRows, generate the first numRows of Pascal's triangle.For exampl
2016-05-30 16:53:52 378
原创 189Rotate Array 实现数组循环右移的代码
Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Note: Try to come up as many solutions as yo
2016-05-26 16:42:03 412
原创 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 complete as many transactions as you like
2016-05-25 17:00:18 294
原创 关于322. Coin Change的解法与总结
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money
2016-05-24 16:46:23 611
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人