摘要: 题目描述: Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 比对字符串haystack和needl 阅读全文
posted @ 2018-02-01 14:04 宵夜在哪 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 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 阅读全文
posted @ 2018-02-01 11:12 宵夜在哪 阅读(82) 评论(0) 推荐(0) 编辑