摘要: 一、问题描述 Description: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part o... 阅读全文
posted @ 2015-05-24 23:32 神奕 阅读(138) 评论(0) 推荐(0)
摘要: 一、问题描述 Description: Given an array and a value, remove all instances of that value in place and return the new length. The order of el... 阅读全文
posted @ 2015-05-24 10:42 神奕 阅读(139) 评论(0) 推荐(0)
摘要: 一、问题描述 Description: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new lengt... 阅读全文
posted @ 2015-05-24 10:27 神奕 阅读(157) 评论(0) 推荐(0)
摘要: 一、问题描述 Description: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of... 阅读全文
posted @ 2015-05-24 09:57 神奕 阅读(121) 评论(0) 推荐(0)
摘要: 一、问题描述 Description: Given a linked list, swap every two adjacent nodes and return its head. For example: Given 1->2->3->4, you shou... 阅读全文
posted @ 2015-05-24 08:55 神奕 阅读(134) 评论(0) 推荐(0)
摘要: 一、问题描述 Description: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.合并 k 个有序链表。二、解题报告解法... 阅读全文
posted @ 2015-05-24 01:42 神奕 阅读(145) 评论(0) 推荐(0)