外网卡炸了,还是回中国站做题
加入了提交时的内存和耗时(并没什么实质性作用,同样的代码内存从68%-99%都有,相对来说还是耗时比较稳定)
# | Title | Solutions | Difficulty | Tag | Time | Memory |
---|---|---|---|---|---|---|
1 | two sum | Solution | Easy | Hash | ||
2 | add two numbers | Solution | Medium | Math | ||
1 | 两数之和 | Solution | Easy | Hash | 66.1% | 26.47% |
2 | 两数相加(递归) | Solution | Medium | Math | 8.8% | 5.26% |
2 | 两数相加(迭代) | Solution | Medium | Design | 99.86% | 92.22% |
3 | 无重复字符的最长子串 | Solution | Medium | Sliding Window | 98.48% | 68.71% |
3 | 无重复字符的最长子串 | Solution | Medium | Two Points | 75.6% | 69.8% |
类似 | 30、76 | 159 | 209 | 239、340 | 567 | 632、727 |
4 | 寻找两个正序数组的中位数 | Solution | Hard | Merge | 97.04% | 98.88% |
5 | 最长回文子串 | Solution | Medium | String | 90.87% | 64.33%[马拉车算法可优化] |
6 | Z 字形变换 | Solution | Medium | Design | 94.16% | 96.99% |
7 | 整数反转 | Solution | Easy | Design | 100% | 94.37% |
8 | 字符串转换整数 | Solution | Medium | Design | 74.4% | 94.53% |
9 | 回文数 | Solution | Easy | Design | 77.38% | 94% |
10 | 正则表达式匹配 | Solution | Hard | Dynamic Programming | (回头继续研究) | |
11 | 盛最多水的容器 | Solution | Medium | Two Points | 97.41% | 96.32%(回头看数学证明题解) |
12 | 整数转罗马数字 | Solution | Medium | String | 75.77% | 96.65% |
13 | 罗马数字转整数 | Solution | Easy | String | 56.48% | 49.23% |
14 | 最长公共前缀 | Solution | Easy | String | 90.59% | 86.24% |
15 | 三数之和 | Solution | Medium | Two Points | 73.47% | 86.32% |
17 | 电话号码的字母组合 | Solution | Medium | Backtracking | 100% | 86.83% |
19 | 删除链表的倒数第N个结点 | Solution | Medium | Two Points | 78.78% | 83.67% |
20 | 有效的括号 | Solution | Easy | Stack | ||
21 | 合并两个有序链表 | Solution | Easy | Linked | 49.83% | 5.04% |
22 | 括号生成 | Solution | Medium | DFS | 100% | 31.01% |
26 | 删除有序数组中的重复项 | Solution | Easy | Two Pointers | 51.75% | 32.2% |
28 | 实现StrStr | Solution | Easy | KMP | 90.44% | 11.81% |
31 | 下一个排列 | Solution | Medium | Array | 74.89% | 38.24% |
33 | 搜索旋转排序数组 | Solution | Medium | Binary Search | 20.52% | 82.63% |
34 | 在排序数组中查找元素的第一个和最后一个位置 | Solution | Medium | Binary Search | 94.7% | 59.26% |
36 | 有效的数独 | Solution | Mediunm | Hash Table | 78.95% | 94.59% |
37 | 组合总和 | Solution | Medium | Back Tracking | 94.48% | 39.75% |
38 | 外观数列 | Solution | Medium | String | 77.59% | 63.56% |
41 | 缺失的第一个正数 | Solution | Hard | Array | 82.62% | 22.48% |
46 | 全排列 | Solution | Medium | Back Tracking | 70.95% | 69.95% |
48 | 旋转图像 | Solution | Medium | Array | 46.51% | 91.31% |
49 | 字母异位词分组 | Solution | Medium | Hash | 91.09% | 11.42% |
53 | 最大子序和 | Solution | Easy | Dynamic Programming | 67.52% | 26.01% |
53 | 最大子序和 | Solution | Easy | Divide And Conquer | 29.71% | 49.08% |
54 | 螺旋矩阵 | Solution | Medium | Array | 100% | 91.77% |
55 | 跳跃游戏 | Solution | Medium | Array | 14.7% | 22.57% |
56 | 合并区间 | Solution | Medium | Array | 25.87% | 16.51% |
62 | 不同路径(Math) | Solution | Medium | Math | 100% | 58.03% |
62 | 不同路径(DP) | Solution | Medium | Dynamic Programming | 100% | 35.13% |
64 | 最小路径和 | Solution | Medium | Dynamic Programming | 20.85% | 53.76% |
66 | 加一 | Solution | Easy | Array | 41.12% | 75.69% |
70 | 爬楼梯 | Solution | Easy | Dynamic Programming | 100% | 59.85% |
73 | 矩阵置零 | Solution | Medium | Array | 95.89% | 64.37% |
75 | 颜色分类 | Solution | Medium | Tow Points | 100% | 82.18% |
78 | 子集 | Solution | Medium | Array | 100% | 67.5% |
79 | 单词搜索 | Solution | Medium | DFS | 45.43% | 92.45% |
88 | 合并两个有序数组 | Solution | Easy | Array | 45.71% | 98.09% |
91 | 解码方法 | Solution | Medium | Dynamic Programming | 100% | 54.12% |
92 | 反转链表 II | Solution | Medium | Linked | 51.4% | 30.73% |
94 | 二叉树的中序遍历(递归) | Solution | Easy | Recursion | 100% | 84.9% |
94 | 二叉树的中序遍历(迭代) | Solution | Easy | Stack | 100% | 18.46% |
96 | 不同的二叉搜索树 | Solution | Medium | Dynamic Programming | 100% | 39.83% |
98 | 验证二叉搜索树 | Solution | Medium | Tree | 6.62% | 5.08% |
101 | 对称二叉树(递归) | Solution | Easy | Recursion | 85.92% | 56.02% |
102 | 二叉树的层序遍历 | Solution | Medium | Breadth First Search | 100% | 47.05% |
104 | 二叉树的最大深度 | Solution | Easy | Recursion | 100% | 70.88% |
105 | 从前序与中序遍历序列构造二叉树 | Solution | Medium | Tree | 97.32% | 55.3% |
114 | 二叉树展开为链表 | Solution | Medium | Tree | 85.79% | 69.68% |
118 | 杨辉三角 | Solution | Easy | Array | 100% | 48.84% |
121 | 买卖股票的最佳时机 | Solution | Easy | Array | 30.07% | 92.48% |
128 | 最长连续序列 | Solution | Medium | Array | 53.36% | 78.43% |
131 | 分割回文串 | Solution | Medium | Backtracking | 54.36% | 66.22% |
136 | 只出现一次的数字 | Solution | Easy | Bit Operation | 70.44% | 60.3% |
141 | 环形链表 | Solution | Easy | Two Points | 65.52% | 80.08% |
142 | 环形链表 II | Solution | Medium | Two Points | 66.4% | 96.1% |
155 | 最小栈 | Solution | Easy | Stack | 80.86% | 56.29% |
160 | 相交链表 | Solution | Easy | Linked | 92.11% | 73.54% |
162 | 寻找峰值 | Solution | Medium | Binary Search | 100% | 33.2% |
169 | 多数元素 | Solution | Easy | Array | 97.32% | 16.03% |
190 | 颠倒二进制位 | Solution | Easy | Bit Operation | 100% | 33.19% |
191 | 位1的个数 | Solution | Easy | Bit Operation | 100% | 44.53% |
202 | 快乐数 | Solution | Easy | Hash Table | 45.61% | 71.18% |
206 | 反转链表 | Solution | Easy | Linked | 63.03% | 96.93% |
215 | 数组中的第k个最大元素 | Solution | Medium | Quick Select | 72.76% | 87.27% |
217 | 存在重复元素 | Solution | Easy | Hash | 59.11% | 43.49% |
226 | 翻转二叉树 | Solution | Easy | Tree | 100% | 42.18% |
231 | 2的幂 | Solution | Easy | Bit Operation | 42.86% | 99.3% |
234 | 回文链表 | Soultion | Easy | Linked | 50.64% | 59.63% |
236 | 二叉树的最近公共祖先 | Solution | Medium | Tree | 99.56% | 80.64% |
238 | 除自身以外数组的乘积 | Solution | Medium | Array | 73.7% | 72.4% |
258 | 各位相加 | Solution | Easy | Math | 46.5% | 95.06% |
279 | 完全平方数 | Solution | Medium | Math | 100% | 99.41% |
283 | 移动零 | Solution | Easy | Array | 67.99% | 5.16% |
287 | 寻找重复数 | Solution | Medium | Two Points | 61.26% | 73.71% |
290 | 单词规律 | Solution | Easy | Hash | 100% | 31.82% |
338 | 比特位计数 | Solution | Easy | Bit Operation | 93.2% | 42.07% |
344 | 反转字符串 | Solution | Easy | String | 19.19% | 98.46% |
347 | 前K个高频元素 | Solution | Medium | Hash Table | 48.75% | 45.28% |
438 | 找到字符串中所有字母异位词 | Solution | Medium | Hash | 60.73% | 59.52% |
442 | 数组中重复的数据 | Soultion | Medium | Array | 45.92% | 52.45% |
448 | 找到所有数组中消失的数字 | Solution | Easy | Array | 69.99% | 53.45% |
461 | 汉明距离 | Solution | Easy | Bit Operation | 100% | 25.07% |
501 | 二叉搜索树中的众数 | Solution | Easy | Tree | 5.26% | 5.12%可优化 |
538 | 把二叉搜索数转换为累加树(原始) | Solution | Easy | Tree | ||
538 | 把二叉搜索数转换为累加树 | Solution | Medium | Tree | 90.4% | 20.15% |
543 | 二叉树的直径 | Solution | Easy | Tree | 77.78% | 48.47% |
617 | 合并二叉树 | Solution | Easy | Tree | 81.06% | 99.21% |
647 | 回文子串 | Solution | Medium | String | 100% | 93.97% |
711 | 宝石与石头 | Solution | Easy | Tree | 67.3% | 72.53% |
739 | 每日温度 | Solution | Medium | Stack | 36.15% | 83.36% |
860 | 柠檬水找零 | Solution | Easy | Design | 93.4% | 22.45% |
861 | 翻转矩阵后的得分 | Solution | Medium | Array | 100% | 22.99% |
1603 | 设计停车系统 | Solution | Easy | Simulation | 33.51% | 76.7% |