![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
gracebxp
这个作者很懒,什么都没留下…
展开
-
LeetCode 24.Swap Nodes in Pairs
题目描述Given a linked list, swap every two adjacent nodes and return its head.You may not modify the values in the list’s nodes, only nodes itself may be changed.Example:Given 1->2->3->4, yo...原创 2019-05-19 23:15:43 · 54 阅读 · 0 评论 -
LeetCode 21.Merge Two Sorted Lists
题目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.例子Input: 1->2->4, 1->3->4Output: 1->1-...原创 2019-05-15 23:42:45 · 61 阅读 · 0 评论 -
LeetCode 22. Generate Parentheses
22.Generate ParenthesesGiven n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is: [ "((()))", "(()())",...原创 2019-05-17 23:38:41 · 64 阅读 · 0 评论