Skip to content

Latest commit

 

History

History
104 lines (74 loc) · 3.6 KB

geekbang.md

File metadata and controls

104 lines (74 loc) · 3.6 KB

数组与链表

  1. https://leetcode.com/problems/reverse-linked-list/
  2. https://leetcode.com/problems/linked-list-cycle/
  3. https://leetcode.com/problems/swap-nodes-in-pairs/
  4. https://leetcode.com/problems/linked-list-cycle-ii/
  5. https://leetcode.com/problems/reverse-nodes-in-k-group/

栈与队列

  1. https://leetcode.com/problems/implement-queue-using-stacks/
  2. https://leetcode.com/problems/implement-stack-using-queues/
  3. https://leetcode.com/problems/valid-parentheses/
  1. https://leetcode.com/problems/kth-largest-element-in-a-stream/
  2. https://leetcode.com/problems/sliding-window-maximum/

哈希表

  1. https://leetcode.com/problems/valid-anagram/
  2. https://leetcode.com/problems/two-sum/
  3. https://leetcode.com/problems/3sum/
  4. https://leetcode.com/problems/4sum/
  5. https://leetcode.com/problems/group-anagrams/

树,二叉树,二叉搜索树

  1. https://leetcode.com/problems/validate-binary-search-tree/
  2. https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
  3. https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/

递归、分治、回溯

  1. https://leetcode.com/problems/powx-n/
  2. https://leetcode.com/problems/majority-element/
  3. https://leetcode.com/problems/maximum-subarray/
  4. https://leetcode.com/problems/valid-anagram/ +duplicate
  5. https://leetcode.com/problems/find-all-anagrams-in-a-string/

贪心

  1. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
  2. https://leetcode.com/problems/lemonade-change/
  3. https://leetcode.com/problems/assign-cookies/
  4. https://leetcode.com/problems/walking-robot-simulation/

树的搜索

  1. https://leetcode.com/problems/binary-tree-level-order-traversal/
  2. https://leetcode.com/problems/maximum-depth-of-binary-tree/
  3. https://leetcode.com/problems/minimum-depth-of-binary-tree/
  4. https://leetcode.com/problems/generate-parentheses/

剪枝

  1. https://leetcode.com/problems/n-queens/
  2. https://leetcode.com/problems/n-queens-ii/
  3. https://leetcode.com/problems/valid-sudoku/
  4. https://leetcode.com/problems/sudoku-solver/

二分

  1. https://leetcode.com/problems/sqrtx/
  2. https://leetcode.com/problems/valid-perfect-square/

Trie

  1. https://leetcode.com/problems/implement-trie-prefix-tree/
  2. https://leetcode.com/problems/word-search-ii/

位运算

  1. https://leetcode.com/problems/number-of-1-bits/
  2. https://leetcode.com/problems/power-of-two/
  3. https://leetcode.com/problems/counting-bits/
  4. https://leetcode.com/problems/n-queens-ii/ +duplicate

动态规划

  1. https://leetcode.com/problems/climbing-stairs/
  2. https://leetcode.com/problems/triangle/
  3. https://leetcode.com/problems/maximum-product-subarray/
  4. https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
  5. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/ +duplicate
  6. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/
  7. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/
  8. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/
  9. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/
  10. https://leetcode.com/problems/longest-increasing-subsequence/
  11. https://leetcode.com/problems/coin-change/
  12. https://leetcode.com/problems/edit-distance/

并查

  1. https://leetcode.com/problems/number-of-islands/
  2. https://leetcode.com/problems/number-of-provinces/

LRU

  1. https://leetcode.com/problems/lru-cache/