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 阅读(149) 评论(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 阅读(123) 评论(0) 推荐(0) 编辑

导航