LeetCode
15 人感兴趣 · 229 次引用
- 最新
- 推荐

LeetCode 题解:105. 从前序与中序遍历序列构造二叉树,递归 + 数组切割,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/


LeetCode 题解:236. 二叉树的最近公共祖先,存储父节点,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/
LeetCode 题解:236. 二叉树的最近公共祖先,递归,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/

LeetCode 题解:17. 电话号码的字母组合,BFS,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/

LeetCode 题解:111. 二叉树的最小深度,BFS,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/minimum-depth-of-binary-tree/

LeetCode 题解:104. 二叉树的最大深度,BFS,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree/

LeetCode 题解:347. 前 K 个高频元素,快速排序,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/top-k-frequent-elements/

LeetCode 题解:264. 丑数 II,三指针,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/ugly-number-ii/

LeetCode 题解:264. 丑数 II,二叉堆,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/ugly-number-ii/

LeetCode 题解:264. 丑数 II,暴力法,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/ugly-number-ii/

LeetCode 题解:347. 前 K 个高频元素,二叉堆,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/top-k-frequent-elements/

LeetCode 题解:239. 滑动窗口最大值,二叉堆,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/sliding-window-maximum/

LeetCode 题解:剑指 Offer 40. 最小的 k 个数,二叉堆,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/

LeetCode 题解:剑指 Offer 40. 最小的 k 个数,快速排序,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/

LeetCode 题解:剑指 Offer 40. 最小的 k 个数,sort,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/

LeetCode 题解:42. 接雨水,栈,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/trapping-rain-water/

LeetCode 题解:42. 接雨水,双指针,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/trapping-rain-water/

LeetCode 题解:42. 接雨水,动态规划,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/trapping-rain-water/

LeetCode 题解:42. 接雨水,暴力法,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/trapping-rain-water/

LeetCode 题解:92. 反转链表 II,迭代,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/reverse-linked-list-ii/

LeetCode 题解:55. 跳跃游戏,贪心,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/jump-game/

LeetCode 题解:92. 反转链表 II,递归,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/reverse-linked-list-ii/

LeetCode 题解:18. 四数之和,双指针,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/4sum/

LeetCode 题解:18. 四数之和,哈希表,JavaScript,详细注释
原题连接:https://leetcode-cn.com/problems/4sum/

LeetCode 题解:127. 单词接龙,双向 BFS,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/word-ladder/

LeetCode 题解:127. 单词接龙,BFS+ 生成所有可能新单词再匹配,JavaScript,详细注释
https://leetcode-cn.com/problems/word-ladder/

LeetCode 题解:127. 单词接龙,BFS+ 统计单词变化次数,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/word-ladder/

LeetCode 题解:429. N 叉树的层序遍历,BFS,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/n-ary-tree-level-order-traversal/

LeetCode 题解:433. 最小基因变化,BFS,JavaScript,详细注释
原题链接:https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/