算法汇总
-
- 环形链表 https://leetcode.cn/problems/linked-list-cycle/
-
- 反转链表 https://leetcode.cn/problems/reverse-linked-list/28
-
- 环形链表 II https://leetcode.cn/problems/linked-list-cycle-ii/
-
- 快乐数 https://leetcode.cn/problems/happy-number/
-
- 反转链表 II https://leetcode.cn/problems/reverse-linked-list-ii/
-
- K 个一组翻转链表 https://leetcode.cn/problems/reverse-nodes-in-k-group/
- 1.两数之和 https://leetcode.cn/problems/two-sum/
-
- 搜索插入位置 https://leetcode.cn/problems/search-insert-position/
-
- 二分查找 https://leetcode.cn/problems/binary-search/
-
- 寻找旋转排序数组中的最小值 https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array/
-
- 搜索旋转排序数组 https://leetcode.cn/problems/search-in-rotated-sorted-array/
-
- x 的平方根 https://leetcode.cn/problems/sqrtx/
-
- 在排序数组中查找元素的第一个和最后一个位置 https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/
-
- 在 D 天内送达包裹的能力 https://leetcode.cn/problems/capacity-to-ship-packages-within-d-days/
-
- 相同的树 https://leetcode.cn/problems/same-tree/
-
- 对称二叉树 https://leetcode.cn/problems/symmetric-tree/
-
- 合并二叉树 https://leetcode.cn/problems/merge-two-binary-trees/
-
- 二叉树的前序遍历 https://leetcode.cn/problems/binary-tree-preorder-traversal/
-
- 二叉树的最小深度 https://leetcode.cn/problems/minimum-depth-of-binary-tree/
-
- 二叉树展开为链表 https://leetcode.cn/problems/flatten-binary-tree-to-linked-list/
-
- 二叉树的最近公共祖先 https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-tree/
-
- 二叉树的直径 https://leetcode.cn/problems/diameter-of-binary-tree/
-
- 另一棵树的子树 https://leetcode.cn/problems/subtree-of-another-tree/
-
- 完全二叉树的节点个数 https://leetcode.cn/problems/count-complete-tree-nodes/
-
- 二叉树的所有路径 https://leetcode.cn/problems/binary-tree-paths/
-
- 二叉树的层序遍历 https://leetcode.cn/problems/binary-tree-level-order-traversal/
-
- 二叉树的层序遍历 II https://leetcode.cn/problems/binary-tree-level-order-traversal-ii/
-
- 二叉树的右视图 https://leetcode.cn/problems/binary-tree-right-side-view/
-
- 二叉树的层平均值 https://leetcode.cn/problems/average-of-levels-in-binary-tree/
-
- 填充每个节点的下一个右侧节点指针 https://leetcode.cn/problems/populating-next-right-pointers-in-each-node/
-
- N 叉树的层序遍历 https://leetcode.cn/problems/n-ary-tree-level-order-traversal/
-
- 路径总和 https://leetcode.cn/problems/path-sum/
-
- 左叶子之和 https://leetcode.cn/problems/sum-of-left-leaves/
-
- 验证二叉搜索树 https://leetcode.cn/problems/validate-binary-search-tree/
-
- 恢复二叉搜索树 https://leetcode.cn/problems/recover-binary-search-tree/
-
- 用队列实现栈 https://leetcode.cn/problems/implement-stack-using-queues/
-
- 用栈实现队列 https://leetcode.cn/problems/implement-queue-using-stacks/
-
- 逆波兰表达式求值 https://leetcode.cn/problems/evaluate-reverse-polish-notation/
-
- 删除字符串中的所有相邻重复项 https://leetcode.cn/problems/remove-all-adjacent-duplicates-in-string/
-
- 反转字符串中的单词 https://leetcode.cn/problems/reverse-words-in-a-string/description/
-
- 电话号码的字母组合 https://leetcode.cn/problems/letter-combinations-of-a-phone-number/
-
- 组合总和 https://leetcode.cn/problems/combination-sum/
-
- N 皇后 https://leetcode.cn/problems/n-queens/
-
- 解数独 https://leetcode.cn/problems/sudoku-solver/
-
- 组合 https://leetcode.cn/problems/combinations/
-
- 子集 https://leetcode.cn/problems/subsets/
-
- 分割回文串 https://leetcode.cn/problems/palindrome-partitioning/
-
- 复原 IP 地址 https://leetcode.cn/problems/restore-ip-addresses/
-
- 跳跃游戏 https://leetcode.cn/problems/jump-game/
-
- 跳跃游戏 II https://leetcode.cn/problems/jump-game-ii/
-
- 用最少数量的箭引爆气球 https://leetcode.cn/problems/minimum-number-of-arrows-to-burst-balloons/
-
- 无重叠区间 https://leetcode.cn/problems/non-overlapping-intervals/
-
- Dota2 参议院 https://leetcode.cn/problems/dota2-senate/
-
- 爬楼梯 https://leetcode.cn/problems/climbing-stairs/
-
- 使用最小花费爬楼梯 https://leetcode.cn/problems/min-cost-climbing-stairs/
-
- 不同路径 https://leetcode.cn/problems/unique-paths/
-
- 不同路径 II https://leetcode.cn/problems/unique-paths-ii/
-
- 打家劫舍 https://leetcode.cn/problems/house-robber/
-
- 打家劫舍 II https://leetcode.cn/problems/house-robber-ii/
-
- 打家劫舍 III https://leetcode.cn/problems/house-robber-iii/
-
- 买卖股票的最佳时机 https://leetcode.cn/problems/best-time-to-buy-and-sell-stock/
-
- 买卖股票的最佳时机 II https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/
-
- 买卖股票的最佳时机 III https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-iii/
-
- 买卖股票的最佳时机含手续费 https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/
-
- 最大子数组和 https://leetcode.cn/problems/maximum-subarray/
-
- 最长连续递增序列 https://leetcode.cn/problems/longest-continuous-increasing-subsequence/
-
- 零钱兑换 II https://leetcode.cn/problems/coin-change-ii/
-
- 判断子序列 https://leetcode.cn/problems/is-subsequence/
-
- 最长公共子序列 https://leetcode.cn/problems/longest-common-subsequence/
-
- 不同的子序列 https://leetcode.cn/problems/distinct-subsequences/
-
- 两个字符串的删除操作 https://leetcode.cn/problems/delete-operation-for-two-strings/
-
- 简化路径 https://leetcode.cn/problems/simplify-path/
-
- 赎金信 https://leetcode.cn/problems/ransom-note/
-
- 有效的字母异位词 https://leetcode.cn/problems/valid-anagram/
-
- 三数之和 https://leetcode.cn/problems/3sum/
-
- 四数之和 https://leetcode.cn/problems/4sum/
-
- Nim 游戏 https://leetcode.cn/problems/nim-game/
-
- 石子游戏 https://leetcode.cn/problems/stone-game/
-
- 3 的幂 https://leetcode.cn/problems/power-of-three/description/
-
- 数组中的第K个最大元素 https://leetcode.cn/problems/kth-largest-element-in-an-array/
-
- 数据流的中位数 https://leetcode.cn/problems/find-median-from-data-stream/
-
- 前 K 个高频元素 https://leetcode.cn/problems/top-k-frequent-elements/
-
- 最小栈 https://leetcode.cn/problems/min-stack/
-
- 整数反转 https://leetcode.cn/problems/reverse-integer/description/
- 61.旋转链表 https://leetcode.cn/problems/rotate-list/
- 24.两两交换链表的节点 https://leetcode.cn/problems/swap-nodes-in-pairs/
-
- 删除链表的倒数第 N 个结点 https://leetcode.cn/problems/remove-nth-node-from-end-of-list/
-
- 删除排序链表中的重复元素 https://leetcode.cn/problems/remove-duplicates-from-sorted-list/
-
- 删除排序链表中的重复元素 II https://leetcode.cn/problems/remove-duplicates-from-sorted-list-ii/
-
- 设计循环队列 https://leetcode.cn/problems/design-circular-queue/
-
- 设计循环双端队列 https://leetcode.cn/problems/design-circular-deque/
-
- 设计前中后队列 https://leetcode.cn/problems/design-front-middle-back-queue/
-
- 最近的请求次数 https://leetcode.cn/problems/number-of-recent-calls
- 面试题 17.09. 第 k 个数 https://leetcode.cn/problems/get-kth-magic-number-lcci/
-
- 亲密字符串 https://leetcode.cn/problems/buddy-strings/
-
- 柠檬水找零 https://leetcode.cn/problems/lemonade-change
-
- 煎饼排序 https://leetcode.cn/problems/pancake-sorting/
-
- 任务调度器 https://leetcode.cn/problems/task-scheduler/
- 面试题 03.04. 化栈为队 https://leetcode.cn/problems/implement-queue-using-stacks-lcci/
-
- 棒球比赛 https://leetcode.cn/problems/baseball-game
-
- 比较含退格的字符串 https://leetcode.cn/problems/backspace-string-compare/
-
- 验证栈序列 https://leetcode.cn/problems/validate-stack-sequences/
-
- 有效的括号 https://leetcode.cn/problems/valid-parentheses
-
- 删除最外层的括号 https://leetcode.cn/problems/remove-outermost-parentheses
-
- 移除无效的括号 https://leetcode.cn/problems/minimum-remove-to-make-valid-parentheses
-
- 验证二叉树的前序序列化 https://leetcode.cn/problems/verify-preorder-serialization-of-a-binary-tree/
-
- 基本计算器 II https://leetcode.cn/problems/basic-calculator-ii/