11 2020 档案

摘要:Algorithm: 22: Generate Parentheses 39: Combination Sum 40: Combination Sum II 46: Permutations 47: Permutations II 328: Odd Even Linked List 本周集中精力多做 阅读全文
posted @ 2020-11-15 23:58 Jeff_p 阅读(91) 评论(0) 推荐(0)
摘要:Algorithm: 200: Number of Islands 547: Friend Circles 都可以使用 Flood Fill 算法,其中 DFS 最为直观,注意其中 visited 可以用布尔数组提高性能,此外 BFS 和 UnionFind 也可以,尤其是第二题使用 UnionFi 阅读全文
posted @ 2020-11-09 01:53 Jeff_p 阅读(94) 评论(0) 推荐(0)
摘要:Algorithm: 129: Sum Root to Leaf Numbers 463: Island Perimeter 都比较容易,注意第一题递归终止条件中只有当前节点是叶子结点才需要累加,避免重复计算。 Review: Fixing Linux filesystem performance 阅读全文
posted @ 2020-11-03 00:13 Jeff_p 阅读(69) 评论(0) 推荐(0)