摘要:
题目:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The... 阅读全文
posted @ 2015-04-17 15:30
YRB
阅读(644)
评论(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 spac 阅读全文
posted @ 2015-04-17 15:00
YRB
阅读(231)
评论(0)
推荐(0)
摘要:
题目: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k th 阅读全文
posted @ 2015-04-17 14:27
YRB
阅读(482)
评论(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. Yo 阅读全文
posted @ 2015-04-17 14:26
YRB
阅读(691)
评论(0)
推荐(0)
摘要:
题目:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.链接:http://leetcode.com/problems/merge-k-sorted-list... 阅读全文
posted @ 2015-04-17 14:08
YRB
阅读(705)
评论(0)
推荐(0)
摘要:
题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set i 阅读全文
posted @ 2015-04-17 13:13
YRB
阅读(1104)
评论(0)
推荐(0)
摘要:
题目: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 链接: 阅读全文
posted @ 2015-04-17 13:12
YRB
阅读(458)
评论(0)
推荐(0)
摘要:
题目: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in 阅读全文
posted @ 2015-04-17 12:25
YRB
阅读(298)
评论(0)
推荐(0)
摘要:
题目: Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this i 阅读全文
posted @ 2015-04-17 12:06
YRB
阅读(325)
评论(0)
推荐(0)
摘要:
题目: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array 阅读全文
posted @ 2015-04-17 10:38
YRB
阅读(1365)
评论(0)
推荐(0)

浙公网安备 33010602011771号