摘要: public List generateParenthesis(int n) { ArrayList result = new ArrayList(); dfs(result, "", n, n); return result; } /* left and right represents the remaining number of ( and ) that need... 阅读全文
posted @ 2019-04-18 12:23 林木声 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2019-04-18 08:37 林木声 阅读(134) 评论(0) 推荐(0) 编辑