前面原题链接,后面题解链接
原题(50题)链接 <https://leetcode-cn.com/problemset/2018-50/>
目录
# 题名 解答 通过率 难度
104
二叉树的最大深度 <https://leetcode-cn.com/problems/maximum-depth-of-binary-tree>
64.1% 简单
344
反转字符串 <https://leetcode-cn.com/problems/reverse-string>
62.5% 简单
292
Nim游戏 <https://leetcode-cn.com/problems/nim-game>
61.1% 简单
557
反转字符串中的单词 III <https://leetcode-cn.com/problems/reverse-words-in-a-string-iii>
60.6% 简单
237
删除链表中的节点 <https://leetcode-cn.com/problems/delete-node-in-a-linked-list>
57.3% 简单
136
只出现一次的数字 <https://leetcode-cn.com/problems/single-number>
52.6% 简单
206
反转链表 <https://leetcode-cn.com/problems/reverse-linked-list>
52.5% 简单
169
求众数 <https://leetcode-cn.com/problems/majority-element>
51.5% 简单
9
回文数 <https://leetcode-cn.com/problems/palindrome-number>
51.5% 简单
235
二叉搜索树的最近公共祖先
<https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree>
50.8% 简单
21
合并两个有序链表 <https://leetcode-cn.com/problems/merge-two-sorted-lists>
48.9% 简单
122
买卖股票的最佳时机 II
<https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii>
48.2% 简单
155
最小栈 <https://leetcode-cn.com/problems/min-stack>
44.8% 简单
121
买卖股票的最佳时机 <https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock>
43.4% 简单
231
2的幂 <https://leetcode-cn.com/problems/power-of-two>
41.1% 简单
217
存在重复元素 <https://leetcode-cn.com/problems/contains-duplicate>
40.9% 简单
70
爬楼梯 <https://leetcode-cn.com/problems/climbing-stairs>
40.7% 简单
26
删除排序数组中的重复项
<https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array>
39.5% 简单
88
合并两个有序数组 <https://leetcode-cn.com/problems/merge-sorted-array>
38.4% 简单
53
最大子序和 <https://leetcode-cn.com/problems/maximum-subarray>
37.9% 简单
20
有效的括号 <https://leetcode-cn.com/problems/valid-parentheses>
32.4% 简单
141
环形链表 <https://leetcode-cn.com/problems/linked-list-cycle>
29.7% 简单
160
相交链表 <https://leetcode-cn.com/problems/intersection-of-two-linked-lists>
29.4% 简单
14
最长公共前缀 <https://leetcode-cn.com/problems/longest-common-prefix>
28.9% 简单
7
反转整数 <https://leetcode-cn.com/problems/reverse-integer>
28.6% 简单
78
子集 <https://leetcode-cn.com/problems/subsets>
66.6% 中等
59
螺旋矩阵 II <https://leetcode-cn.com/problems/spiral-matrix-ii>
66.2% 中等
46
全排列 <https://leetcode-cn.com/problems/permutations>
60.3% 中等
230
二叉搜索树中第K小的元素 <https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst>
56.7% 中等
238
除自身以外数组的乘积 <https://leetcode-cn.com/problems/product-of-array-except-self>
54.1% 中等
89
格雷编码 <https://leetcode-cn.com/problems/gray-code>
53.9% 中等
148
排序链表 <https://leetcode-cn.com/problems/sort-list>
51.2% 中等
215
数组中的第K个最大元素 <https://leetcode-cn.com/problems/kth-largest-element-in-an-array>
50.3% 中等
62
不同路径 <https://leetcode-cn.com/problems/unique-paths>
48.8% 中等
11
盛最多水的容器 <https://leetcode-cn.com/problems/container-with-most-water>
41.2% 中等
236
二叉树的最近公共祖先
<https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree>
37.7% 中等
16
最接近的三数之和 <https://leetcode-cn.com/problems/3sum-closest>
34.5% 中等
61
旋转链表 <https://leetcode-cn.com/problems/rotate-list>
33.4% 中等
43
字符串相乘 <https://leetcode-cn.com/problems/multiply-strings>
33.1% 中等
33
搜索旋转排序数组 <https://leetcode-cn.com/problems/search-in-rotated-sorted-array>
32.1% 中等
54
螺旋矩阵 <https://leetcode-cn.com/problems/spiral-matrix>
30.2% 中等
2
两数相加 <https://leetcode-cn.com/problems/add-two-numbers>
29.0% 中等
142
环形链表 II <https://leetcode-cn.com/problems/linked-list-cycle-ii>
26.7% 中等
5
最长回文子串 <https://leetcode-cn.com/problems/longest-palindromic-substring>
22.5% 中等
15
三数之和 <https://leetcode-cn.com/problems/3sum>
15.7% 中等
8
字符串转整数 (atoi) <https://leetcode-cn.com/problems/string-to-integer-atoi>
15.3% 中等
23
合并K个排序链表 <https://leetcode-cn.com/problems/merge-k-sorted-lists>
38.6% 困难
146
LRU缓存机制 <https://leetcode-cn.com/problems/lru-cache>
32.5% 困难
124
二叉树中的最大路径和 <https://leetcode-cn.com/problems/binary-tree-maximum-path-sum>
30.5% 困难
4
两个排序数组的中位数 <https://leetcode-cn.com/problems/median-of-two-sorted-arrays>
30.3% 困难
已从易到难排序
下面将陆续更新个人题解,尽量做到排版思路尽善尽美,希望大家也能有所收获,一起交流学习~~~
目录
目录
<https://blog.csdn.net/weixin_41793113/article/details/82721102#%E7%9B%AE%E5%BD%95>
leetcode 104. 二叉树的最大深度(Maximum Depth of Binary Tree)
<https://blog.csdn.net/weixin_41793113/article/details/82721195>
leetcode 344. 反转字符串(Reverse String)
<https://blog.csdn.net/weixin_41793113/article/details/82721285>
leetcode 292. Nim游戏(Nim Game)
<https://blog.csdn.net/weixin_41793113/article/details/82721852>
leetcode 557. 反转字符串中的单词 III(Reverse Words in a String III)
<https://blog.csdn.net/weixin_41793113/article/details/82722366>
leetcode 237. 删除链表中的节点(Delete Node in a Linked List)
<https://blog.csdn.net/weixin_41793113/article/details/82722400>
leetcode 136. 只出现一次的数字(Single Number)
<https://blog.csdn.net/weixin_41793113/article/details/82722469>
leetcode 206. 反转链表(Reverse Linked List) java beat 100%
<https://blog.csdn.net/weixin_41793113/article/details/82528926>
leetcode 169. 求众数(Majority Element)
<https://blog.csdn.net/weixin_41793113/article/details/82722636>
leetcode 9. 回文数(Palindrome Number)
<https://blog.csdn.net/weixin_41793113/article/details/82722871>
leetcode 235. 二叉搜索树的最近公共祖先(Lowest Common Ancestor of a Binary Search Tree)
<https://blog.csdn.net/weixin_41793113/article/details/82723836>
leetcode 21. 合并两个有序链表(Merge Two Sorted Lists)
<https://blog.csdn.net/weixin_41793113/article/details/82724043>
leetcode 122. 买卖股票的最佳时机 II(Best Time to Buy and Sell Stock II) beat 100%
<https://blog.csdn.net/weixin_41793113/article/details/82747453>
leetcode 155. 最小栈(Min Stack)
<https://blog.csdn.net/weixin_41793113/article/details/82723767>
leetcode 121. 买卖股票的最佳时机(Best Time to Buy and Sell Stock)
<https://blog.csdn.net/weixin_41793113/article/details/82748503>
leetcode 231. 2的幂(Power of Two)
<https://blog.csdn.net/weixin_41793113/article/details/82761554>
leetcode 217. 存在重复元素(Contains Duplicate)
<https://blog.csdn.net/weixin_41793113/article/details/82761735>
leetcode 70. 爬楼梯(Climbing Stairs)
<https://blog.csdn.net/weixin_41793113/article/details/82761835>
leetcode 26. 删除排序数组中的重复项(Remove Duplicates from Sorted Array)
<https://blog.csdn.net/weixin_41793113/article/details/82761976>
leetcode 88. 合并两个有序数组(Merge Sorted Array)
<https://blog.csdn.net/weixin_41793113/article/details/82748904>
leetcode 53. 最大子序和(Maximum Subarray)
<https://blog.csdn.net/weixin_41793113/article/details/82762133>
leetcode 20. 有效的括号(Valid Parentheses)
<https://blog.csdn.net/weixin_41793113/article/details/82194984>
leetcode 141. 环形链表(Linked List Cycle)
<https://blog.csdn.net/weixin_41793113/article/details/82724648>
leetcode 160. 相交链表(Intersection of Two Linked Lists)
<https://blog.csdn.net/weixin_41793113/article/details/82725326>
leetcode 14. 最长公共前缀(Longest Common Prefix)
<https://blog.csdn.net/weixin_41793113/article/details/82746913>
leetcode 7. 反转整数(Reverse Integer)
<https://blog.csdn.net/weixin_41793113/article/details/82746972>
leetcode 78. 子集(Subsets) beat 100%
<https://blog.csdn.net/weixin_41793113/article/details/82747368>
leetcode 59. 螺旋矩阵 II(Spiral Matrix II)
<https://blog.csdn.net/weixin_41793113/article/details/82762203>
leetcode 46. 全排列(Permutations) beat 99.28%
<https://blog.csdn.net/weixin_41793113/article/details/82725439>
leetcode 230. 二叉搜索树中第K小的元素(Kth Smallest Element in a BST)
<https://blog.csdn.net/weixin_41793113/article/details/82762284>
leetcode 238. 除自身以外数组的乘积(Product of Array Except Self) beat 100%
<https://blog.csdn.net/weixin_41793113/article/details/82794638>
leetcode 89. 格雷编码(Gray Code)
<https://blog.csdn.net/weixin_41793113/article/details/82794986>
leetcode 148. 排序链表(Sort List)
<https://blog.csdn.net/weixin_41793113/article/details/82762356>
leetcode 215. 数组中的第K个最大元素(Kth Largest Element in an Array)
<https://blog.csdn.net/weixin_41793113/article/details/82779888>
leetcode 62. 不同路径(Unique Paths)
<https://blog.csdn.net/weixin_41793113/article/details/82774565>
leetcode 11. 盛最多水的容器(Container With Most Water)
<https://blog.csdn.net/weixin_41793113/article/details/82774746>
leetcode 236. 二叉树的最近公共祖先(Lowest Common Ancestor of a Binary Tree)
<https://blog.csdn.net/weixin_41793113/article/details/82795013>
leetcode 61. 旋转链表(Rotate List)
<https://blog.csdn.net/weixin_41793113/article/details/82774293>
leetcode 43. 字符串相乘(Multiply Strings)
<https://blog.csdn.net/weixin_41793113/article/details/82762608>
leetcode 54. 螺旋矩阵(Spiral Matrix)
<https://blog.csdn.net/weixin_41793113/article/details/82774205>
leetcode 2. 两数相加(Add Two Numbers)
<https://blog.csdn.net/weixin_41793113/article/details/82794414>
leetcode 142. 环形链表 II(Linked List Cycle II)
<https://blog.csdn.net/weixin_41793113/article/details/82762687>
leetcode 5. 最长回文子串(Longest Palindromic Substring)
<https://blog.csdn.net/weixin_41793113/article/details/82775363>
leetcode 15. 三数之和(3Sum)
<https://blog.csdn.net/weixin_41793113/article/details/82775018>
leetcode 23. 合并K个排序链表(Merge k Sorted Lists)
<https://blog.csdn.net/weixin_41793113/article/details/82780061>
待更新(*有上限,一天只能发布10篇)
热门工具 换一换