摘要: 1.题目描述 Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1-... 阅读全文
posted @ 2013-08-22 23:40 曾见绝美的阳光 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 2.解法分析 ... 阅读全文
posted @ 2013-08-22 23:14 曾见绝美的阳光 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.问题描述 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. ... 阅读全文
posted @ 2013-08-22 22:16 曾见绝美的阳光 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which g... 阅读全文
posted @ 2013-08-22 22:04 曾见绝美的阳光 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 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... 阅读全文
posted @ 2013-08-22 18:17 曾见绝美的阳光 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 1.题目分析 Given a linked list, remove the nth node from the end of list and return its head. For example, ... 阅读全文
posted @ 2013-08-22 17:05 曾见绝美的阳光 阅读(163) 评论(0) 推荐(0) 编辑