摘要:
题目描述: 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 阅读全文
摘要:
题目描述: 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 las 阅读全文
摘要:
题目描述: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4 阅读全文
摘要:
题目描述: The count-and-say sequence is the sequence of integers with the first five terms as following: 1 is read off as "one 1" or 11.11 is read off as 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
题目描述: Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 比对字符串haystack和needl 阅读全文
摘要:
题目描述: 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 another array 阅读全文
摘要:
题目描述: Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra sp 阅读全文
摘要:
题目描述: Write a function to find the longest common prefix string amongst an array of strings. 读入一个char**和字符串的数量strSize,返回所有字符串前面相同的字符(char*类型). 解题思路: 将 阅读全文