myshuangwaiwai

2015年7月29日

LeetCode 21 -- 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. 1 publi... 阅读全文

posted @ 2015-07-29 17:35 myshuangwaiwai 阅读(130) 评论(0) 推荐(0) 编辑
LeetCode 20 -- Valid Parentheses

摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the c... 阅读全文

posted @ 2015-07-29 17:04 myshuangwaiwai 阅读(129) 评论(0) 推荐(0) 编辑
LeetCode 15 -- 3Sum

摘要: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers.... 阅读全文

posted @ 2015-07-29 15:28 myshuangwaiwai 阅读(137) 评论(0) 推荐(0) 编辑