每周leetcode题
第12周-动态规划(入门)
- https://leetcode-cn.com/problems/fibonacci-number/
- https://leetcode-cn.com/problems/climbing-stairs/
- https://leetcode-cn.com/problems/triangle/
- https://leetcode-cn.com/problems/length-of-longest-fibonacci-subsequence/
- https://leetcode-cn.com/problems/longest-common-subsequence/
第11周-回溯算法
- https://leetcode-cn.com/problems/generate-parentheses/
- https://leetcode-cn.com/problems/permutations-ii/
- https://leetcode-cn.com/problems/restore-ip-addresses/
- https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/
- https://leetcode-cn.com/problems/n-queens/
第10周-分治算法
- https://leetcode-cn.com/problems/reverse-bits/
- https://leetcode-cn.com/problems/convert-sorted-array-to-binary-search-tree/
- https://leetcode-cn.com/problems/powx-n/
- https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
- https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
第9周-贪心算法
- https://leetcode-cn.com/problems/lemonade-change/
- https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/
- https://leetcode-cn.com/problems/jump-game/
- https://leetcode-cn.com/problems/jump-game-ii/
- https://leetcode-cn.com/problems/task-scheduler/
第8周-二分查找
- https://leetcode-cn.com/problems/search-insert-position/
- https://leetcode-cn.com/problems/sqrtx/
- https://leetcode-cn.com/problems/first-bad-version/
- https://leetcode-cn.com/problems/search-in-rotated-sorted-array/
- https://leetcode-cn.com/problems/search-a-2d-matrix/
第7周-排序
- https://leetcode-cn.com/problems/sort-an-array/
- https://leetcode-cn.com/problems/relative-sort-array/
- https://leetcode-cn.com/problems/sort-list/
- https://leetcode-cn.com/problems/largest-number/
- https://leetcode-cn.com/problems/merge-intervals/
第6周-线段树、字典树、并查集
- https://leetcode-cn.com/problems/range-sum-query-mutable/ (线段树)
- https://leetcode-cn.com/problems/count-of-range-sum/ (线段树)
- https://leetcode-cn.com/problems/implement-trie-prefix-tree/ (Trie)
- https://leetcode-cn.com/problems/word-search-ii/ (Trie)
- https://leetcode-cn.com/problems/number-of-islands/ (并查集)
第5周-堆(优先队列)
- https://leetcode-cn.com/problems/kth-largest-element-in-an-array/
- https://leetcode-cn.com/problems/top-k-frequent-words/
- https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-di-kda-jie-dian-lcof/
- https://leetcode-cn.com/problems/merge-k-sorted-lists/
- https://leetcode-cn.com/problems/find-median-from-data-stream/
第4周-二叉树
- https://leetcode-cn.com/problems/binary-tree-inorder-traversal/(自行搞定其它前中后序遍历递归和迭代写法)
- https://leetcode-cn.com/problems/invert-binary-tree/
- https://leetcode-cn.com/problems/binary-tree-level-order-traversal/
- https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/
- https://leetcode-cn.com/problems/validate-binary-search-tree/
第3周-栈和队列
- https://leetcode-cn.com/problems/valid-parentheses/
- https://leetcode-cn.com/problems/min-stack/
- https://leetcode-cn.com/problems/reverse-linked-list-ii/
- https://leetcode-cn.com/problems/reverse-substrings-between-each-pair-of-parentheses/
- https://leetcode-cn.com/problems/evaluate-reverse-polish-notation/
第2周-链表
- https://leetcode-cn.com/problems/linked-list-cycle/
- https://leetcode-cn.com/problems/reverse-linked-list/
- https://leetcode-cn.com/problems/maximum-subarray/
- https://leetcode-cn.com/problems/palindrome-linked-list/
- https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/