![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
new boy();
喜欢hub,但不限于git开头
展开
-
leetcode 第十四题的简单算法分析(英文)
14th question from LeetCode public String longestCommonPrefix(String[] strs) { if (strs == null || strs.length == 0) { return ""; } String carry = ""; carry...原创 2019-09-23 22:42:01 · 191 阅读 · 0 评论 -
leetcode第四十题解析(回溯法)
先粘代码 几个关键地方加了备注应该挺可读的 class Solution { public void backtrack(int n, ArrayList<Integer> nums, List<List<Integer>> result, int flag) { if (flag == n) //溯回次数到达数字...原创 2019-09-28 13:02:10 · 149 阅读 · 0 评论