随笔分类 - 【Algorithm】
摘要:https://leetcode.com/tag/union-find/
阅读全文
摘要:【101】Symmetric Tree 判断一棵树是不是对称。 题解:直接递归判断了,感觉和bfs没有什么强联系,当然如果你一定要用queue改写的话,勉强也能算bfs。 // 这个题目的重点是 比较对象是 左子树的左儿子和右子树的右儿子, 左子树的右儿子和右子树的左儿子。不要搞错。 // 直接中序
阅读全文
摘要:https://leetcode.com/tag/graph/
阅读全文
摘要:https://leetcode.com/tag/two-pointers/
阅读全文
摘要:https://leetcode.com/tag/linked-list/
阅读全文
摘要:链接:https://leetcode.com/tag/recursion/
阅读全文
摘要:https://leetcode.com/tag/sort/
阅读全文
摘要:https://leetcode.com/tag/greedy/
阅读全文
摘要:https://leetcode.com/tag/tree/
阅读全文
摘要:https://leetcode.com/tag/brainteaser/
阅读全文
摘要:Kickstart 2018 All Rounds
阅读全文
摘要:[1] Manacher 求一个字符串中的最长回文子串。 讲解直接放ppt,复习能回忆起来就行。 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 using namespac
阅读全文
摘要:leetcode 我的题解按照 tag 分类文章索引
阅读全文
摘要:从contest-41开始。(一般是10个contest写一篇文章)
阅读全文
摘要:Kickstart 2017 All Rounds.
阅读全文
摘要:1. 自己实现 lower_bound, upper_bound
阅读全文
浙公网安备 33010602011771号