摘要:
题目1 : Magic Box时间限制:10000ms单点时限:1000ms内存限制:256MB描述The circus clown Sunny has a magic box. When the circus is performing, Sunny puts some balls into th... 阅读全文
posted @ 2015-04-03 22:20
Sawyer Ford
阅读(657)评论(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.You... 阅读全文
posted @ 2015-03-24 20:54
Sawyer Ford
阅读(204)评论(0)推荐(0)
摘要:
题目描述:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity. 因为之前做过Merge Two Sorted Lists,所以这道题也就显得不那么难了。sol... 阅读全文
posted @ 2015-03-23 19:18
Sawyer Ford
阅读(157)评论(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-03-23 15:14
Sawyer Ford
阅读(153)评论(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-03-20 21:56
Sawyer Ford
阅读(182)评论(0)推荐(0)