题目来源
GitHub地址:https://github.com/zj19941113/LeetCode-50-JavaScript-Answers
相关:
刷题汇总(二)剑指Offer 66题 C++答案总结
刷题汇总(三)leetcode 精选50题 C++答案总结
刷题汇总(四)技术类编程题汇总 C++
刷题汇总(五)leetcode 热题 HOT 100 C++ 答案总结
刷题汇总(六)leetcode 多线程 / Shell
2两数相加-33.0%-中等
https://leetcode-cn.com/problems/add-two-numbers/
1 | /** |
4寻找两个有序数组的中位数-33.8%-困难
https://leetcode-cn.com/problems/median-of-two-sorted-arrays/
1 | /** |
5最长回文子串-24.7%-中等
https://leetcode-cn.com/problems/longest-palindromic-substring/submissions/
1 | /** |
7整数反转-31.8%-简单
https://leetcode-cn.com/problems/reverse-integer/
1 | /** |
8字符串转换整数 (atoi)-16.6%-中等
https://leetcode-cn.com/problems/median-of-two-sorted-arrays
1 | /** |
9回文数-56.0%-简单
https://leetcode-cn.com/problems/palindrome-number/
1 | /** |
11盛最多水的容器-53.5%-中等
https://leetcode-cn.com/problems/container-with-most-water/
1 | /** |
14最长公共前缀-32.2%-简单
https://leetcode-cn.com/problems/longest-common-prefix/
1 | /** |
15三数之和-21.2%-中等
https://leetcode-cn.com/problems/3sum
1 | /** |
16最接近的三数之和-39.0%-中等
https://leetcode-cn.com/problems/3sum-closest/
1 | /** |
20有效的括号-36.7%-简单
https://leetcode-cn.com/problems/valid-parentheses/
1 | /** |
21合并两个有序链表-52.9%-简单
https://leetcode-cn.com/problems/merge-two-sorted-lists/
1 | /** |
23合并K个排序链表-43.8%-困难
https://leetcode-cn.com/problems/merge-k-sorted-lists/
1 | /** |
26删除排序数组中的重复项-42.9%-简单
https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/
1 | /** |
33搜索旋转排序数组-35.8%-中等
https://leetcode-cn.com/problems/search-in-rotated-sorted-array/
1 | /** |
43字符串相乘-37.9%-中等
https://leetcode-cn.com/problems/multiply-strings/
1 | /** |
46全排列-66.7%-中等
https://leetcode-cn.com/problems/permutations/
1 | /** |
53最大子序和-42.9%-简单
https://leetcode-cn.com/problems/maximum-subarray/
1 | /** |
54螺旋矩阵-34.0%-中等
https://leetcode-cn.com/problems/spiral-matrix/
1 | /** |
59螺旋矩阵II-71.1%-中等
https://leetcode-cn.com/problems/spiral-matrix-ii/
1 | /** |
61旋转链表-37.5%-中等
https://leetcode-cn.com/problems/rotate-list/
1 | /** |
62不同路径-52.6%-中等
https://leetcode-cn.com/problems/unique-paths/
1 | /** |
70爬楼梯-44.5%-简单
https://leetcode-cn.com/problems/climbing-stairs/
1 | /** |
78子集-71.6%-中等
https://leetcode-cn.com/problems/subsets/
1 | /** |
88合并两个有序数组-43.0%-简单
https://leetcode-cn.com/problems/merge-two-sorted-lists/
1 | /** |
89格雷编码-62.7%-中等
https://leetcode-cn.com/problems/gray-code/
1 | /** |
104二叉树的最大深度-67.4%-简单
https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/
1 | /** |
121买卖股票的最佳时机-48.5%-简单
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock/
1 | /** |
122买卖股票的最佳时机II-51.6%-简单
https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/
1 | /** |
124二叉树中的最大路径和-33.8%-困难
https://leetcode-cn.com/problems/binary-tree-maximum-path-sum/
1 | /** |
136只出现一次的数字-59.1%-简单
https://leetcode-cn.com/problems/single-number/
1 | /** |
141环形链表-35.5%-简单
https://leetcode-cn.com/problems/linked-list-cycle
1 | /** |
142环形链表II-34.8%-中等
https://leetcode-cn.com/problems/linked-list-cycle-ii/
1 | /** |
146LRU缓存机制-39.0%-困难
https://leetcode-cn.com/problems/lru-cache/
1 | /** |
148排序链表-58.6%-中等
https://leetcode-cn.com/problems/sort-list/
1 | /** |
155最小栈-47.7%-简单
https://leetcode-cn.com/problems/min-stack/
1 | /** |
160相交链表-37.2%-简单
https://leetcode-cn.com/problems/intersection-of-two-linked-lists/
1 | /** |
169求众数-58.0%-简单
https://leetcode-cn.com/problems/majority-element/
1 | /** |
206反转链表-58.6%-简单
https://leetcode-cn.com/problems/reverse-linked-list/
1 | /** |
215数组中的第K个最大元素-56.6%-中等
https://leetcode-cn.com/problems/kth-largest-element-in-an-array/
1 | /** |
217存在重复元素-47.0%-简单
https://leetcode-cn.com/problems/contains-duplicate/
1 | /** |
230二叉搜索树中第K小的元素-62.0%-中等
https://leetcode-cn.com/problems/kth-smallest-element-in-a-bst/
1 | /** |
231 2的幂-44.3%-简单
https://leetcode-cn.com/problems/power-of-two/
1 | /** |
235二叉搜索树的最近公共祖先-56.9%-简单
https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
1 | /** |
236二叉树的最近公共祖先-50.4%-中等
https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/
1 | /** |
237删除链表中的节点-69.4%-简单
https://leetcode-cn.com/problems/delete-node-in-a-linked-list/
1 | /** |
238除自身以外数组的乘积-58.8%-中等
https://leetcode-cn.com/problems/product-of-array-except-self/
1 | /** |
292Nim游戏-66.4%-简单
https://leetcode-cn.com/problems/nim-game/
1 | /** |
344反转字符串-65.1%-简单
https://leetcode-cn.com/problems/reverse-string/
1 | /** |
557反转字符串中的单词III-63.5%-简单
https://leetcode-cn.com/problems/reverse-words-in-a-string-iii/
1 | /** |