brainstate

krahets/LeetCode-Book · source

Snapshot 0 · 2026-11-04T12:47:26Z · Java ·

Content fingerprintba4d11c0b893c62ff531916c9f56614e559041d42bd9c9b89df679cfccf8bbf6

GitHub description at capture

《剑指 Offer》《图解算法数据结构》《Krahets 笔面试精选 88 题》Python, Java, C++ 解题代码

README at capture

<p align="center">
  <a href="https://leetcode-cn.com/leetbook/detail/illustration-of-algorithm/">
    <img src="https://pic.leetcode-cn.com/1599187248-gDiWnC-image.png" width="490">
  </a>
</p>

<p align="center">
  <img src="https://img.shields.io/badge/LeetCode%20tests-75%20accepted-brightgreen">
  <img src="https://img.shields.io/badge/Language-Python-teal">
  <img src="https://img.shields.io/badge/Language-Java-orange">
  <img src="https://img.shields.io/badge/Language-C++-blue">
</p>

[《图解算法数据结构》](https://leetcode-cn.com/leetbook/detail/illustration-of-algorithm/)是一本面向算法初学者和互联网求职者编写的 LeetBook 手册。

- 图文详解 75 道题目,覆盖主要算法知识点。
- 题目活跃于各大互联网公司招聘中,可使笔面试准备事半功倍。
- 致力于行文深入浅出、图文搭配,提供简洁的 Python, Java, C++ 解题代码。

> [!NOTE]  
>
> 本仓库包含:
> 
> ```python
> LeetCode-Book
> ├── sword_for_offer            # 《剑指 Offer》题目解析、配套代码、刷题计划
> ├── selected_coding_interview  # 《Krahets 笔面试精选 88 题》题目解析、配套代码
> └── leetbook_ioa               # 《图解算法数据结构》题目解析
> ```

> 若本仓库对您有所帮助,请在页面右上角点个 **Star** :star: 支持一下,谢谢!

## 如何学习算法

### 第一步:看入门书

<p align="center" href="https://github.com/krahets/hello-algo">
  <img src="https://www.hello-algo.com/index.assets/hello_algo_header.png" width="550">
</p>

<p align="center">
  <a href="https://github.com/krahets/hello-algo">《Hello 算法》</a> —— 动画图解、一键运行的数据结构与算法教程
</p>

此书旨在引导初学者探索数据结构与算法的知识地图,掌握刷题需要的前置知识与工具库。

> [!TIP]
> 建议先读完这本书(概括且全面地了解数据结构与算法),再开始刷题(深入探索各类算法和数据结构)。

### 第二步:刷算法题

推荐以下 LeetCode 题单:

1. [Krahets 笔面试精选 88 题](https://leetcode.cn/studyplan/selected-coding-interview/):从“剑指 Offer”和“热题 100”精选出的 88 道高频算法笔试题,适合初学者入门。
2. [LeetCode 热题 100](https://leetcode.cn/studyplan/top-100-liked/):力扣用户最喜爱的 100 道题。
3. [面试经典 150 题](https://leetcode.cn/studyplan/top-interview-150/):150 道经典面试力扣题。
4. [LeetCode-75](https://leetcode.cn/studyplan/leetcode-75/):精选 75 道面试核心题目。

对初学者刷题的一些建议:

1. 建议每日刷 2~3 题。若能轻松完成,可以尝试增加至 5~8 题。
2. 刷题的质量比数量更加重要。请确保你真正理解了每个题目的解法及背后的算法原理。
3. 建议你按照题单目录的顺序做题。如果感觉一道题很难,可以先跳过,后续再攻克。
4. 题目通常有不止一种解法,请你注意比较和探讨各种方法的特点和适用情况。
5. 如果你发现自己遗忘了题目解法,不必灰心;我们通常需要复习三次以上,才能真正掌握一个知识点。
6. 行百里者半九十。坚持至关重要,加油!

## License

The texts, code, and images in this repository are licensed under [CC BY-NC-SA-4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/).