摘要: ## 直接法 ```java public int removeDuplicates(int[] nums) { if (nums == null) { return -1; } boolean start = false; int nextIndex = 1; for (int i = 1; i 阅读全文
posted @ 2023-07-04 16:05 jrjewljs 阅读(3) 评论(0) 推荐(0) 编辑
摘要: ## 暴力枚举 ```java class Solution { public List generateParenthesis(int n) { List list = getAll(2 * n); List result = new ArrayList(); for (String item : 阅读全文
posted @ 2023-07-04 15:33 jrjewljs 阅读(5) 评论(0) 推荐(0) 编辑