摘要: 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 阅读全文
posted @ 2017-08-10 23:31 这个手杀不太0 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-10 22:09 这个手杀不太0 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 53. Maximum Subarray【leetcode】 Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, g 阅读全文
posted @ 2017-08-10 10:39 这个手杀不太0 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack 解题思路:首先本题考查的为strStr()函数的实 阅读全文
posted @ 2017-08-10 01:47 这个手杀不太0 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-10 00:33 这个手杀不太0 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-08-10 00:13 这个手杀不太0 阅读(138) 评论(0) 推荐(0) 编辑