单刷
【leetcode笔记】Python实现9.回文数
【leetcode笔记】Python实现18.四数之和
【leetcode笔记】Python实现19. 删除链表的倒数第N个节点
【leetcode笔记】Python实现:31.下一个排列
LeetCode算法题:
双指针:167. Two Sum II - Input array is sorted
https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/description/
排序:
快速选择、堆排序:215. Kth Largest Element in an Array
https://leetcode.com/problems/kth-largest-element-in-an-array/description/
【leetcode笔记】Python实现215.Kth Largest Element in an Array
桶排序:347. Top K Frequent Elements
https://leetcode.com/problems/top-k-frequent-elements/description/
【leetcode笔记】Python实现347. Top K Frequent Elements
荷兰国旗问题:75. Sort Colors
https://leetcode.com/problems/sort-colors/description/
贪心:455. Assign Cookies
https://leetcode.com/problems/assign-cookies/description/
Leetcode算法题:
二分(题号:69):https://leetcode.com/problems/sqrtx/description/
分治(题号:241):https://leetcode.com/problems/different-ways-to-add-parentheses/description/
【leetcode笔记】Python实现 LeetCode 241. Different Ways to Add Parentheses
链表(题号:160):https://leetcode.com/problems/intersection-of-two-linked-lists/description/
【leetcode笔记】Python实现 LeetCode 160. Intersection of Two Linked Lists
哈希表(题号:1):https://leetcode.com/problems/two-sum/description/
字符串(题号:242):https://leetcode.com/problems/valid-anagram/description/
栈和队列(题号:232):https://leetcode.com/problems/implement-queue-using-stacks/description/
【leetcode笔记】Python实现 232. Implement Queue using Stacks
LeetCode算法题:
字符串(409):https://leetcode.com/problems/longest-palindrome/description/
数组和矩阵(378):https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/description/
位运算(260):https://leetcode.com/problems/single-number-iii/description/
位运算(136):https://leetcode.com/problems/single-number/description/
数学
进制转换(504):https://leetcode.com/problems/base-7/description/
相遇问题(462):https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/description/
多数投票问题(169):https://leetcode.com/problems/majority-element/description/
LeetCode算法
树:
递归(110):https://leetcode.com/problems/balanced-binary-tree/description/
层次遍历(513):https://leetcode.com/problems/find-bottom-left-tree-value/description/
前中后序遍历(144):https://leetcode.com/problems/binary-tree-preorder-traversal/description/
BST(230):https://leetcode.com/problems/kth-smallest-element-in-a-bst/description/
Trie(208):https://leetcode.com/problems/implement-trie-prefix-tree/description/
https://blog.csdn.net/weixin_37251044/article/details/88822071
图:
二分图(785):https://leetcode.com/problems/is-graph-bipartite/description/
【leetcode笔记】Python实现 785. Is Graph Bipartite?
拓扑排序(207):https://leetcode.com/problems/course-schedule/description/
【leetcode笔记】Python实现 207. Course Schedule
并查集(684):https://leetcode.com/problems/redundant-connection/description/
LeetCode算法题:
搜索:
BFS(279):https://leetcode.com/problems/perfect-squares/description/
【leetcode笔记】Python实现 279. Perfect Squares
DFS(695):https://leetcode.com/problems/max-area-of-island/description/
【leetcode笔记】Python实现 695. Max Area of Island
Backtracking(17):https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/
【leetcode笔记】Python实现 17. Letter Combinations of a Phone Number
动态规划:
斐波那契数列(70):https://leetcode.com/problems/climbing-stairs/description/
矩阵路径(64):https://leetcode.com/problems/minimum-path-sum/description/
【leetcode笔记】Python实现 64. Minimum Path Sum
数组区间(303):https://leetcode.com/problems/range-sum-query-immutable/description/
分割整数(343):https://leetcode.com/problems/integer-break/description/
【leetcode笔记】Python实现 343. Integer Break
最长递增子序列(300):https://leetcode.com/problems/longest-increasing-subsequence/description/
【leetcode笔记】Python实现 300. Longest Increasing Subsequence
0-1 背包(416):https://leetcode.com/problems/partition-equal-subset-sum/description/
【leetcode笔记】Python实现 416. Partition Equal Subset Sum
股票交易(309):https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/description/
【leetcode笔记】Python实现 714. Best Time to Buy and Sell Stock with Transaction Fee
【leetcode笔记】Python实现 309. Best Time to Buy and Sell Stock with Cooldown
字符串编辑(583):https://leetcode.com/problems/delete-operation-for-two-strings/description/