leetcode算法
西瓜plus盐
做一个肉包怪不好嘛
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leetcode练习23 --- Merge k Sorted Lists
1. Divide And Conquer /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val, ListNode next) { this.val = val; thi原创 2020-06-28 18:10:15 · 174 阅读 · 0 评论 -
Leetcode练习22 --- Generate Parentheses
1. brute force class Solution { // using the features of char array public List<String> generateParenthesis(int n) { List<String> combinations = new ArrayList(); // n pairs, the length of each combination is 2 * n原创 2020-06-27 20:16:19 · 178 阅读 · 0 评论
分享