- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 26. Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this by modifyi...
2018-07-20 20:00:22 155
原创 28. Implement strStr()
Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = "hello", needle = "ll" Output: 2 Example...
2018-07-20 15:42:12 220
原创 53. Maximum Subarray
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 Explanati...
2018-07-20 11:09:36 132
原创 21. Merge Two Sorted Lists
21. Merge Two Sorted Lists DescriptionHintsSubmissionsDiscussSolution Pick One Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes ...
2018-07-19 11:54:08 127
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人