- 博客(4)
- 收藏
- 关注
原创 leetcode011-Best Time to Buy and Sell Stock with Transaction Fee
Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee representing a transaction fee. You may complete as m
2017-11-26 23:31:08 245
原创 leetcode010-Maximum Length of Repeated Subarray(LCS动态规划)
Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Input: A: [1,2,3,2,1] B: [3,2,1,4,7] Output: 3 Explanation: The repeated subar
2017-11-19 19:49:15 249
原创 leetcode009-Rotate Image
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Note: You have to rotate the image in-place, which means you have to modify the input 2D matrix
2017-11-12 23:34:43 211
原创 leetcode008-Longest Substring Without Repeating Characters
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. Given "bbbbb", the answer is "b",
2017-11-05 22:59:51 225
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人