LeetCode Notebook 2020-2021
  • 序
  • 目录
  • 线性表
    • 数组
      • Remove Duplicates from Sorted Array
      • Remove Duplicates from Sorted Array II
      • Exercises I
      • Search in Rotated Sorted Array
      • Search in Rotated Sorted Array II
      • Median of Two Sorted Arrays
      • Longest Consecutive Sequence
      • Exercises II
      • Two Sum
      • 3Sum
      • 3Sum Closest
      • 4Sum
      • Exercises III
      • Next Permutation
      • Permutation Sequence
      • Exercises IV
      • Valid Sudoku
      • Trapping Rain Water
      • Rotate Image
      • Plus One
      • Exercises V
      • Climbing Stairs
      • Set Matrix Zeroes
      • Gray Code
      • Gas Station
      • Exercises VI
      • Candy
      • Single Number
      • Single Number II
      • Exercises VII
    • 链表
      • Add Two Numbers
      • Reverse Linked List II
      • Partition List
      • Swap-nodes-in-pairs
  • 字符串
    • 字符串
      • Valid Palindrome
      • Implement strStr()
      • String to Integer(atoi)
      • Add Binary
      • Longest Palindromic Substring
      • Longest Common Subsequence
      • Regular Expression Matching
      • Rearrange Spaces Between Words
      • Longest Common Prefix
      • Wildcard Matching
      • subdomain visit count
  • 栈和队列
    • 栈
      • Min Stack
      • Valid Parentheses
    • 队列
  • 树
    • 二叉树的遍历
      • Binary Tree Preorder Traversal
      • Binary Tree Inorder Traversal
      • Binary Tree Postorder Traversal
      • Search in a Binary Search Tree
    • 二叉树的构造
      • Untitled
    • 二叉查找树
      • Validate Binary Search Tree
    • 二叉树的递归
      • Untitled
  • 图
    • 图
  • 排序
    • 排序
      • Merge Sorted Array
      • Merge Two Sorted Lists
      • Merge k Sorted Lists
      • Exercises I
      • Insertion Sort List
      • Sort List
      • Sort Color
      • First Missing Positive
      • Exercises II
  • 查找
    • 查找
      • Random Pick with Weight
      • Prefix and Suffix Search
      • Search Insert Position
      • Search a 2D Matrix
  • BFS
    • BFS
  • DFS
    • DFS
      • Split a String Into the Max Number of Unique Substrings
      • Palindrome Partitioning
      • Unique Path
      • Unique Path II
  • 动态规划
    • DP
      • Coin Change
      • Maximal Rectangle
      • Super Egg Drop
      • Exercises
      • Best Team With No Conflicts
  • 分治法
    • Divide And Conquer
  • 贪心法
    • Greedy
      • Jump Game
      • Jump Game II
      • Best time to buy and sell stock
      • Best time to buy and sell stock II
      • Container with most water
      • Exercises
  • 暴力枚举
    • Brute Force
      • Subsets
      • Subsets II
      • Permutation
      • Permutation II
      • Combinations
      • Letter Combinations of a Phone Number
  • others
    • 小岛题
    • 滑动窗口
      • Longest substring without repeating characters
      • Sliding Window Maximum
      • Max Consecutive One III
      • Count Number of Nice Subarrays
    • Roman number code
    • Untitled
由 GitBook 提供支持
在本页
  • 内容简介
  • 自学推荐
  • 推荐书目
  • 推荐视频课
  • STL参考
  • 其他说明
  • 结语

这有帮助吗?

序

代码同步更新:https://github.com/CeliaChien/leetcode

下一页目录

最后更新于4年前

这有帮助吗?

内容简介

本书为参考soulmachine于2016年所出的,结合到2021年leetcode官网更新的题集,按照原先编撰的顺序,增加题目或者解法。

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

自学推荐

推荐书目

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

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

推荐视频课

算法:普林斯顿算法公开课

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

第一部分:av50599771

第二部分:av53329027

数据结构:浙江大学 数据结构

b站搬运:BV1JW411i731

STL参考

其他说明

我自己的leetcode刷题主页:

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

结语

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

因为刷题主阵营在,非中国力扣,所以阅读题意需要一点英语阅读基础。

http://cplusplus.com/
LeetCode官网
LeetCode题解
LogoAlgorithms, Part ICoursera
Logohttps://leetcode.com/celiaqian/LeetCode
LogoGitHub - CeliaChien/leetcode: My LeetCode NotebookGitHub