摘要:
Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 题意:返回在字符串中子字符串出现的第一个位置,没 阅读全文
posted @ 2016-12-24 13:39
wilderness
阅读(141)
评论(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, you 阅读全文
posted @ 2016-12-24 13:24
wilderness
阅读(161)
评论(0)
推荐(0)
摘要:
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2016-12-24 12:53
wilderness
阅读(189)
评论(0)
推荐(0)
摘要:
Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Your a 阅读全文
posted @ 2016-12-24 12:29
wilderness
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号