---
title: "【算法】LeetCode使用攻略"
author: "Perrin Yong"
author_profile: https://www.pystone.net/profile/
published_by: "Perrin Yong"
canonical: https://www.pystone.net/notes/leetcode-usage-guide/
type: note
content_role: unspecified
visibility: public
id_stability: rename-stable
source_path: "10-计算机、信息技术与工程/06-数据算法与工程数学/【算法】LeetCode使用攻略.md"
content_hash: 7f62d1d3ec071845e9030a666a0f94bc59e3374c909fa001568e4442e9833a08
knowledge_version: 224c990773de.5fa8af6e39fa
site_commit: 224c990773de166d23a886306577dd90379529ce
notes_commit: 5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a
---
# 【算法】LeetCode使用攻略

﻿# 【算法】LeetCode使用攻略

> 创建时间：2020/1/8 21:12

1. 用动画显示题目解法 <https://github.com/MisterBooo/LeetCodeAnimation>

  2. LeetCode的攻略  <https://github.com/azl397985856/leetcode> （经典题目解析+数据结构算法总结）

我的刷题方式：

  1. 先刷完腾讯经典和经典面试，并把知识点整理总结

  2. 按照tag刷

  3. 先易后难

  4. 每天10道

  5. 一边刷，一边整理笔记

  6. 先思考10分钟，如果没有思路，就看答案，对照代码，自己写一遍，整理笔记

算法主要是以下几种：

  1. 基础技巧：分治，二分，贪心

  2. 排序算法：归并，计数，快排

  3. 搜索：回溯，递归，DFS，BFS，二叉搜索树

  4. 图论：最短路，最小生成树

  5. DP：背包，最长子序列

数据结构：

  1. 数组与单双向链表

  2. 栈与队列

  3. 哈希表

  4. 堆：最大堆，最小堆

  5. 树与图：最近公共祖先，并查集

  6. 字符串：前缀树（字典树），后缀树
