- 博客(9)
- 收藏
- 关注
原创 Delete and Earn
Delete and Earn 题目 代码块 想法 Description Given an array nums of integers, you can perform operations on the array. In each operation, you pick any nums[i] and delete it to earn nums[i] poin
2018-01-13 15:32:52
181
原创 Maximum Length of Repeated Subarray
718. Maximum Length of Repeated Subarray 题目 代码块 想法 Description Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Inpu
2018-01-13 14:12:57
162
原创 Remove K Digits
Remove K Digits 题目 代码块 想法 Description Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. The leng
2018-01-13 13:34:51
183
原创 Leecode 215. Kth Largest Element in an Array
Kth Largest Element in an Array 题目 代码块 想法 Description Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct el
2018-01-13 00:44:53
209
原创 Leecode 53. Maximum Subarray
LEECODE 53. Maximum Subarray 题目 代码块 想法 Description Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array
2018-01-12 19:36:36
224
原创 Z字形转化
LEECODE Algorithm 6. ZigZag Conversion 题目 代码块 想法 Description The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a
2017-10-09 21:33:45
550
原创 清除元素
LEECODE Algorithm 27. Remove Element 题目 代码块 想法 Description Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for anot
2017-09-28 16:31:58
241
原创 分治算法求两数组中位数
LEECODE Algorithm 4. Median of Two Sorted Arrays本Markdown编辑器使用[StackEdit][6]修改而来,用它写博客,将会带来全新的体验哦: 题目 代码块 想法 Description There are two sorted arrays nums1 and nums2 of size m and n respectively.
2017-09-11 13:22:56
745
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人