← 返回首页

Leetcode Hot100(Chython)

刷题记录
序号题号 · 名称类型已理解已掌握
011 · 两数之和Two Sum哈希
0249 · 字母异位词分组Group Anagrams哈希
03128 · 最长连续序列Longest Consecutive Sequence哈希
04169 · 多数元素Majority Element数组
05121 · 买卖股票的最佳时机Best Time to Buy and Sell Stock数组
0653 · 最大子数组和Maximum Subarray数组
0756 · 合并区间Merge Intervals数组
08189 · 轮转数组Rotate Array数组
09238 · 除自身以外数组的乘积Product of Array Except Self数组
10283 · 移动零Move Zeroes双指针
1111 · 盛最多水的容器Container With Most Water双指针
1215 · 三数之和3Sum双指针
1375 · 颜色分类Sort Colors双指针
1431 · 下一个排列Next Permutation数组
15287 · 寻找重复数Find the Duplicate Number双指针 / Floyd
163 · 无重复字符的最长子串Longest Substring Without Repeating Characters滑动窗口
17438 · 找到字符串中所有字母异位词Find All Anagrams in a String滑动窗口
18560 · 和为 K 的子数组Subarray Sum Equals K前缀和
1942 · 接雨水Trapping Rain Water双指针
20239 · 滑动窗口最大值Sliding Window Maximum单调队列
2176 · 最小覆盖子串Minimum Window Substring滑动窗口
22160 · 相交链表Intersection of Two Linked Lists链表
23206 · 反转链表Reverse Linked List链表
24234 · 回文链表Palindrome Linked List链表
25141 · 环形链表Linked List Cycle链表
26142 · 环形链表 IILinked List Cycle II链表
2721 · 合并两个有序链表Merge Two Sorted Lists链表
282 · 两数相加Add Two Numbers链表
2919 · 删除链表的倒数第 N 个结点Remove Nth Node From End of List链表
3024 · 两两交换链表中的节点Swap Nodes in Pairs链表
3125 · K 个一组翻转链表Reverse Nodes in k-Group链表
32138 · 随机链表的复制Copy List with Random Pointer链表
33148 · 排序链表Sort List链表
3423 · 合并 K 个升序链表Merge k Sorted Lists堆 / 链表
35146 · LRU 缓存LRU Cache链表 + 哈希
3694 · 二叉树的中序遍历Binary Tree Inorder Traversal二叉树
37104 · 二叉树的最大深度Maximum Depth of Binary Tree二叉树
38226 · 翻转二叉树Invert Binary Tree二叉树
39101 · 对称二叉树Symmetric Tree二叉树
40543 · 二叉树的直径Diameter of Binary Tree二叉树
41102 · 二叉树的层序遍历Binary Tree Level Order TraversalBFS
42108 · 将有序数组转换为二叉搜索树Convert Sorted Array to Binary Search TreeBST
4398 · 验证二叉搜索树Validate Binary Search TreeBST
44230 · 二叉搜索树中第 K 小的元素Kth Smallest Element in a BSTBST
45199 · 二叉树的右视图Binary Tree Right Side ViewBFS
46114 · 二叉树展开为链表Flatten Binary Tree to Linked List二叉树
47105 · 从前序与中序遍历序列构造二叉树Construct Binary Tree from Preorder and Inorder Traversal二叉树
48437 · 路径总和 IIIPath Sum III前缀和 + 树
49236 · 二叉树的最近公共祖先Lowest Common Ancestor of a Binary Tree二叉树
50124 · 二叉树中的最大路径和Binary Tree Maximum Path Sum树形 DP
51200 · 岛屿数量Number of IslandsDFS / BFS
52994 · 腐烂的橘子Rotting OrangesBFS
53207 · 课程表Course Schedule拓扑排序
54208 · 实现 TrieImplement TrieTrie
5546 · 全排列Permutations回溯
5678 · 子集Subsets回溯
5717 · 电话号码的字母组合Letter Combinations of a Phone Number回溯
5839 · 组合总和Combination Sum回溯
5922 · 括号生成Generate Parentheses回溯
6079 · 单词搜索Word Search回溯
61131 · 分割回文串Palindrome Partitioning回溯
6251 · N 皇后N-Queens回溯
6335 · 搜索插入位置Search Insert Position二分
6474 · 搜索二维矩阵Search a 2D Matrix二分
6534 · 在排序数组中查找元素的第一个和最后一个位置Find First and Last Position of Element in Sorted Array二分
6633 · 搜索旋转排序数组Search in Rotated Sorted Array二分
67153 · 寻找旋转排序数组中的最小值Find Minimum in Rotated Sorted Array二分
684 · 寻找两个正序数组的中位数Median of Two Sorted Arrays二分
6920 · 有效的括号Valid Parentheses
70155 · 最小栈Min Stack
71394 · 字符串解码Decode String
72739 · 每日温度Daily Temperatures单调栈
7384 · 柱状图中最大的矩形Largest Rectangle in Histogram单调栈
74215 · 数组中的第 K 个最大元素Kth Largest Element in an Array
75347 · 前 K 个高频元素Top K Frequent Elements
76295 · 数据流的中位数Find Median from Data Stream双堆
7770 · 爬楼梯Climbing StairsDP
78118 · 杨辉三角Pascal's TriangleDP
79198 · 打家劫舍House RobberDP
80279 · 完全平方数Perfect SquaresDP
81322 · 零钱兑换Coin ChangeDP
82139 · 单词拆分Word BreakDP
83300 · 最长递增子序列Longest Increasing SubsequenceDP
84152 · 乘积最大子数组Maximum Product SubarrayDP
85416 · 分割等和子集Partition Equal Subset Sum0/1 背包
8662 · 不同路径Unique Paths二维 DP
8764 · 最小路径和Minimum Path Sum二维 DP
885 · 最长回文子串Longest Palindromic SubstringDP
891143 · 最长公共子序列Longest Common Subsequence二维 DP
9072 · 编辑距离Edit Distance二维 DP
91136 · 只出现一次的数字Single Number位运算
92191 · 位 1 的个数Number of 1 Bits位运算
93338 · 比特位计数Counting Bits位运算 / DP
94461 · 汉明距离Hamming Distance位运算
9548 · 旋转图像Rotate Image矩阵
9654 · 螺旋矩阵Spiral Matrix矩阵
9773 · 矩阵置零Set Matrix Zeroes矩阵
98240 · 搜索二维矩阵 IISearch a 2D Matrix II矩阵
99169 / 综合复习 · 多数元素模式复习Majority Element Pattern Review模式复习
100综合复习 · Hot100 模式总复盘Hot100 Pattern Review总结