2019年1月16日
摘要: Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1:Input: haystack = "hello", needle = 阅读全文
posted @ 2019-01-16 23:37 KissMe3Times 阅读(89) 评论(0) 推荐(0)
摘要: Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another ar 阅读全文
posted @ 2019-01-16 20:22 KissMe3Times 阅读(86) 评论(0) 推荐(0)
摘要: Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra spa 阅读全文
posted @ 2019-01-16 17:47 KissMe3Times 阅读(149) 评论(0) 推荐(0)