摘要: 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 @ 2017-10-18 17:11 hdu胡恩超 阅读(164) 评论(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 @ 2017-10-18 12:28 hdu胡恩超 阅读(150) 评论(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 @ 2017-10-18 12:20 hdu胡恩超 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 25. Reverse Nodes in k-Group Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer 阅读全文
posted @ 2017-10-18 11:21 hdu胡恩超 阅读(128) 评论(0) 推荐(0) 编辑