摘要:
35. Search Insert Position Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would b 阅读全文
摘要:
28. Implement strStr() Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 解题思路: 1)判断needle字符串长度, 阅读全文
摘要:
27. Remove Element 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 s 阅读全文
摘要:
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 t 阅读全文