记录一下学习算法的一些代码。
冗余连接 II https://leetcode-cn.com/problems/redundant-connection-ii/ 全排列 II https://leetcode-cn.com/problems/permutations-ii/ 左叶子之和 https://leetcode-cn.com/problems/sum-of-left-leaves/ 子集 https://leetcode-cn.com/problems/subsets/ 把二叉搜索树转换为累加树 https://leetcode-cn.com/problems/convert-bst-to-greater-tree/ 监控二叉树 https://leetcode-cn.com/problems/binary-tree-cameras/ 合并二叉树 https://leetcode-cn.com/problems/merge-two-binary-trees/ 二叉搜索树中的众数 https://leetcode-cn.com/problems/find-mode-in-binary-search-tree/ 从中序与后序遍历序列构造二叉树 https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ 路径总和 II https://leetcode-cn.com/problems/path-sum-ii/ 二叉搜索树的最近公共祖先 https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-search-tree/ 填充每个节点的下一个右侧节点指针 II https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node-ii/ 二叉树的后序遍历 https://leetcode-cn.com/problems/binary-tree-postorder-traversal/ 二叉搜索树中的插入操作 https://leetcode-cn.com/problems/insert-into-a-binary-search-tree/ 秋叶收藏集 https://leetcode-cn.com/problems/UlBDOe/ 宝石与石头 https://leetcode-cn.com/problems/jewels-and-stones/ 四数之和 https://leetcode-cn.com/problems/4sum/ 树中距离之和 https://leetcode-cn.com/problems/sum-of-distances-in-tree/ 颜色分类 https://leetcode-cn.com/problems/sort-colors/ 转字符串 https://leetcode-cn.com/problems/reverse-string/ 环形链表 https://leetcode-cn.com/problems/linked-list-cycle/ 环形链表 II https://leetcode-cn.com/problems/linked-list-cycle-ii/ 分割等和子集 https://leetcode-cn.com/problems/partition-equal-subset-sum/ 二叉搜索树的最小绝对差 https://leetcode-cn.com/problems/minimum-absolute-difference-in-bst/ 两两交换链表中的节点 https://leetcode-cn.com/problems/swap-nodes-in-pairs/ 查找常用字符 https://leetcode-cn.com/problems/find-common-characters/ 填充每个节点的下一个右侧节点指针 https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node/ 有序数组的平方 https://leetcode-cn.com/problems/squares-of-a-sorted-array/ N皇后 II https://leetcode-cn.com/problems/n-queens-ii/ 删除链表的倒数第N个节点 https://leetcode-cn.com/problems/remove-nth-node-from-end-of-list/ 比较含退格的字符串 https://leetcode-cn.com/problems/backspace-string-compare/ 重排链表 https://leetcode-cn.com/problems/reorder-list/ 链表的中间结点 https://leetcode-cn.com/problems/middle-of-the-linked-list/ 一维数组的动态和 https://leetcode-cn.com/problems/running-sum-of-1d-array/ 跳跃游戏 https://leetcode-cn.com/problems/jump-game/ 长按键入 https://leetcode-cn.com/problems/long-pressed-name/ 二叉树的前序遍历 https://leetcode-cn.com/problems/binary-tree-preorder-traversal/ 无重复字符的最长子串 https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/ 一和零 https://leetcode-cn.com/problems/ones-and-zeroes/ 划分字母区间 https://leetcode-cn.com/problems/partition-labels/ 回文链表 https://leetcode-cn.com/problems/palindrome-linked-list/ 三个数的最大乘积 https://leetcode-cn.com/problems/maximum-product-of-three-numbers/submissions/ 视频拼接 https://leetcode-cn.com/problems/video-stitching/ 数组中的最长山脉 https://leetcode-cn.com/problems/longest-mountain-in-array/ 有多少小于当前数字的数字 https://leetcode-cn.com/problems/how-many-numbers-are-smaller-than-the-current-number/ 二叉树的中序遍历 https://leetcode-cn.com/problems/binary-tree-inorder-traversal/ 独一无二的出现次数 https://leetcode-cn.com/problems/unique-number-of-occurrences/ 求根到叶子节点数字之和 https://leetcode-cn.com/problems/sum-root-to-leaf-numbers/ 二叉树的最近公共祖先 https://leetcode-cn.com/problems/lowest-common-ancestor-of-a-binary-tree/ 岛屿的周长 https://leetcode-cn.com/problems/island-perimeter/ 单词拆分 https://leetcode-cn.com/problems/word-break/ 单词拆分 II https://leetcode-cn.com/problems/word-break-ii/ 有效的山脉数组 https://leetcode-cn.com/problems/valid-mountain-array/ 插入区间 https://leetcode-cn.com/problems/insert-interval/ 单词接龙 https://leetcode-cn.com/problems/word-ladder/ 根据数字二进制下 1 的数目排序 https://leetcode-cn.com/problems/sort-integers-by-the-number-of-1-bits/ 寻找最近的回文数 https://leetcode-cn.com/problems/find-the-closest-palindrome/ 区间和的个数 https://leetcode-cn.com/problems/count-of-range-sum/ 买卖股票的最佳时机 II https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-ii/ 最接近原点的 K 个点 https://leetcode-cn.com/problems/k-closest-points-to-origin/ 下一个排列 https://leetcode-cn.com/problems/next-permutation/ 自由之路 https://leetcode-cn.com/problems/freedom-trail/ 按奇偶排序数组 II https://leetcode-cn.com/problems/sort-array-by-parity-ii/ 奇偶链表 https://leetcode-cn.com/problems/odd-even-linked-list/ 数组的相对排序 https://leetcode-cn.com/problems/relative-sort-array/ 移掉K位数字 https://leetcode-cn.com/problems/remove-k-digits/ 根据身高重建队列 https://leetcode-cn.com/problems/queue-reconstruction-by-height/ 距离顺序排列矩阵单元格 https://leetcode-cn.com/problems/matrix-cells-in-distance-order/ 加油站 https://leetcode-cn.com/problems/gas-station/ 移动零 https://leetcode-cn.com/problems/move-zeroes/ 对链表进行插入排序 https://leetcode-cn.com/problems/insertion-sort-list/ 排序链表 https://leetcode-cn.com/problems/sort-list/ 有效的字母异位词 https://leetcode-cn.com/problems/valid-anagram/ 用最少数量的箭引爆气球 https://leetcode-cn.com/problems/minimum-number-of-arrows-to-burst-balloons/ 完全二叉树的节点个数 https://leetcode-cn.com/problems/count-complete-tree-nodes/ 上升下降字符串 https://leetcode-cn.com/problems/increasing-decreasing-string/ 最大间距 https://leetcode-cn.com/problems/maximum-gap/ 四数相加 II https://leetcode-cn.com/problems/4sum-ii/ 翻转对 https://leetcode-cn.com/problems/reverse-pairs/ 三角形的最大周长 https://leetcode-cn.com/problems/largest-perimeter-triangle/ 重构字符串 https://leetcode-cn.com/problems/reorganize-string/ 在排序数组中查找元素的第一个和最后一个位置 https://leetcode-cn.com/problems/find-first-and-last-position-of-element-in-sorted-array/ 计数质数 https://leetcode-cn.com/problems/count-primes/ 分割数组为连续子序列 https://leetcode-cn.com/problems/split-array-into-consecutive-subsequences/ 任务调度器 https://leetcode-cn.com/problems/task-scheduler/ 杨辉三角 https://leetcode-cn.com/problems/pascals-triangle/ 翻转矩阵后的得分 https://leetcode-cn.com/problems/score-after-flipping-matrix/ 将数组拆分成斐波那契序列 https://leetcode-cn.com/problems/split-array-into-fibonacci-sequence/ 不同路径 https://leetcode-cn.com/problems/unique-paths/ 柠檬水找零 https://leetcode-cn.com/problems/lemonade-change/ Dota2 参议院 https://leetcode-cn.com/problems/dota2-senate/ 摆动序列 https://leetcode-cn.com/problems/wiggle-subsequence/ 字母异位词分组 https://leetcode-cn.com/problems/group-anagrams/ 单词规律 https://leetcode-cn.com/problems/word-pattern/ 买卖股票的最佳时机含手续费 https://leetcode-cn.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/ 去除重复字母 https://leetcode-cn.com/problems/remove-duplicate-letters/ 使用最小花费爬楼梯 https://leetcode-cn.com/problems/min-cost-climbing-stairs/ 二叉树的锯齿形层序遍历 https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/ 最后一块石头的重量 https://leetcode-cn.com/problems/last-stone-weight/ 无重叠区间 https://leetcode-cn.com/problems/non-overlapping-intervals/ 种花问题 https://leetcode-cn.com/problems/can-place-flowers/ 分隔链表 https://leetcode-cn.com/problems/partition-list/ 较大分组的位置 https://leetcode-cn.com/problems/positions-of-large-groups/ 旋转数组 https://leetcode-cn.com/problems/rotate-array/ 可被 5 整除的二进制前缀 https://leetcode-cn.com/problems/binary-prefix-divisible-by-5/