2017年7月8日

Leetcode----26. Remove Duplicates from Sorted Array

摘要: Description Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate ex 阅读全文

posted @ 2017-07-08 10:22 Hugh_Sun 阅读(105) 评论(0) 推荐(0) 编辑

Leetcode---28. Implement strStr()

摘要: Description Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Solution htt 阅读全文

posted @ 2017-07-08 08:05 Hugh_Sun 阅读(119) 评论(0) 推荐(0) 编辑

Leetcode----27 Remove Element

摘要: Description 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 阅读全文

posted @ 2017-07-08 06:45 Hugh_Sun 阅读(125) 评论(0) 推荐(0) 编辑

导航