![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
yxing555
这个作者很懒,什么都没留下…
展开
-
LeetCode | 27. Remove Element | Easy
Question Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, you must do this by modifying the i...原创 2019-06-20 11:46:12 · 104 阅读 · 0 评论 -
LeetCode | 283. Move Zeroes | Easy
Questions Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements. You must do this in-place without making a copy of the ...原创 2019-06-20 13:58:00 · 103 阅读 · 0 评论 -
LeetCode | 35. Search Insert Position | Easy
Question Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the...原创 2019-06-20 14:53:18 · 120 阅读 · 0 评论 -
LeetCode | 53. Maximum Subarray | Easy | DP
Question Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 E...原创 2019-06-21 14:01:21 · 164 阅读 · 0 评论