Files
2021-05-10 23:15:26 +08:00

30 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 第二章 算法专题
type: docs
weight: 2
---
# 第二章 算法专题
<p align='center'>
<img src='https://img.halfrost.com/Leetcode/GO_LEARN_.png'>
</p>
本来天真的认为,把 LeetCode 所有题都完整刷一遍,就可以完整这本书了。经过事实证明,确实是天真了。因为 LeetCode 每天都会增加新题,有时候工作忙了,刷题进度就完全追不上题目更新的速度了。而且以我当前的刷题速度,一年才完成 500+,一年 LeetCode 也会更新 400+ 多题,要起码 5~10 年才能把所有的题目刷完。时间太长了。所以先给自己定了一个小目标500 题就先把书写出来,总结这个阶段的刷题心得,和大家一起交流。要想把 LeetCode 所有题目都刷完,看来这本书要迭代 5 ~ 10 个版本了(一年迭代一版)。
那么这一章就把已经刷完了的专题都整理一遍。有相似套路的题目都放在一起,如果想快速面试的话,其实相同的题目刷 23 道就可以了。相同类型的题目非常熟练的情况下,再多刷几道也是做无用功。
做到目前为止,笔者认为动态规划是最灵活的类型,这类题目没有一个模板可以给你套用,它也是算法之优雅的地方。笔者认为称它为算法的艺术不为过。动态规划这类型,笔者也还没有刷完,只刷了一部分,还在学习中。
那么就分享一下笔者目前刷过的题,和有相似点的题目吧。
----------------------------------------------
<div style="display: flex;justify-content: space-between;align-items: center;">
<p><a href="https://books.halfrost.com/leetcode/ChapterOne/Time_Complexity/">⬅️上一章</a></p>
<p><a href="https://books.halfrost.com/leetcode/ChapterTwo/Array/">下一页➡️</a></p>
</div>