摘要: 28. Implement strStr() Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 子 阅读全文
posted @ 2016-09-07 21:38 花椰菜菜菜菜 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 27. Remove Element 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 阅读全文
posted @ 2016-09-07 10:50 花椰菜菜菜菜 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 26. Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the ne 阅读全文
posted @ 2016-09-07 10:31 花椰菜菜菜菜 阅读(379) 评论(0) 推荐(0) 编辑