
LeetCode
dianziwenyou
这个作者很懒,什么都没留下…
展开
-
LeetCode[22]:Generate Parentheses
DescriptionGiven n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:[ "((()))", "(()())", "(())()", "()转载 2017-03-12 10:07:06 · 338 阅读 · 0 评论 -
【算法】删除单链表的倒数第N个结点
DescriptionGiven a linked list, remove the nth node from the end of list and return its head. *For example, * Given linked list: 1->2->3->4->5, and n = 2. * After removing the second node from the转载 2017-03-13 09:50:47 · 418 阅读 · 0 评论