# 序

## 内容简介

&#x20;   本书为参考soulmachine于2016年所出的[LeetCode题解](https://github.com/soulmachine/leetcode)，结合到2021年leetcode官网更新的题集，按照原先编撰的顺序，增加题目或者解法。

&#x20;   解题语言为C++，故在使用本书前，建议先有一定C语言或者C++的编程基础。了解generic programming，熟悉C++的六大部件（Containers，Allocators，Algorithms，Iterators，Adapters，Functions）和Standard Template Library（STL）。并且最好专业课有修过算法和数据结构或者有自学过的基础，了解容器的数据结构，有栈，队列，树的认知，以及基本的排序，搜索算法认知。

## 自学推荐

### 推荐书目

《数据结构》严蔚敏等著 清华大学出版

*essential c++  by  Stanley B. Lippman(有中文版，侯捷老师翻译)*

### 推荐视频课

**算法：普林斯顿算法公开课**

{% embed url="<https://www.coursera.org/learn/algorithms-part1>" %}

中文字幕移步至b站搬运：

第一部分：av50599771

第二部分：av53329027

**数据结构：浙江大学 数据结构**

b站搬运：BV1JW411i731

### STL参考

<http://cplusplus.com/>

## 其他说明

因为刷题主阵营在[LeetCode官网](https://leetcode.com)，非中国力扣，所以阅读题意需要一点英语阅读基础。

我自己的leetcode刷题主页：

{% embed url="<https://leetcode.com/celiaqian/>" %}

本着方便大家的想法，代码已经同步更新到GitHub上，链接附上：

{% embed url="<https://github.com/CeliaChien/leetcode>" %}

## 结语

文档开始时期：2020年9月20日


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://celia-qian.gitbook.io/leetcode-notebook-2020-2021/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
