摘要:
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin 阅读全文
摘要:
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
摘要:
53. Maximum Subarray【leetcode】 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, g 阅读全文
摘要:
Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack 解题思路:首先本题考查的为strStr()函数的实 阅读全文
摘要:
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 or 阅读全文
摘要:
27. Remove Element【leetcode】 Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra 阅读全文