- 博客(4)
- 收藏
- 关注
原创 [LeetCode] Merge Two Sorted Lists
题目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.思路这道题比较简单,直接上代码。代码/** * Definition for sin
2015-12-08 16:37:06 286
原创 [LeetCode] Valid Parentheses
题目Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are
2015-12-08 16:29:49 219
原创 [LeetCode] Remove Nth Node From End of List
题目Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the
2015-12-08 16:24:03 348
原创 [Leetcode] 4Sum
题目Given anarray S of n integers, are thereelements a, b, c, and d in S suchthat a + b + c + d = target? Find allunique quadruplets in the array which gives the sum of target.Note:Elements in a
2015-12-08 16:21:43 260
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人