2014年4月17日

Linked List Cycle II -LeetCode

摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?思路:... 阅读全文

posted @ 2014-04-17 05:30 iisahu 阅读(154) 评论(0) 推荐(0)

Generate Parentheses - LeetCode

摘要: Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))... 阅读全文

posted @ 2014-04-17 05:11 iisahu 阅读(126) 评论(0) 推荐(0)

导航