
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 · 85 阅读 · 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->4 Output: 1->1-...原创 2019-05-15 23:42:45 · 95 阅读 · 0 评论 -
LeetCode 22. Generate Parentheses
22.Generate Parentheses Given 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 · 96 阅读 · 0 评论