Sort in Ascending order, traverse using two pointers by binary search and store the answer in a mutable array to solve "18. 4Sum"
Sort in Ascending order, traverse using two pointers by binary search and store the answer in a mutable array to solve "18. 4Sum"
Using recursive function inside to make a Depth fisrt search, visiting the outer variable, solving the "979. Distribute Coins in Binary Tree".
Using recursive function inside to make a Depth fisrt search, visiting the outer variable, solving the "979. Distribute Coins in Binary Tree".
Dynamic Programming Algorithm with Space Compression Optimization and different ways to shallow copy a array list
Using dynamic programming algorithm with space compression optimization and different ways to shallow copy a Array List, solving the "931. Minimum Falling Path Sum"
动态规划 + 状态压缩 + bitCount 统计二进制 1 个数,求解《1681. 最小不兼容性》
Go / Java / C# / C / C++ / Python / PHP 内置 bitCount,动态规划 + 状态压缩,求解《1681. 最小不兼容性》
深度优先搜索,广度优先搜索,并查集,3 方法求解《1254. 统计封闭岛屿的数目》
深度优先搜索,广度优先搜索,并查集,3 方法求解《1254. 统计封闭岛屿的数目》
哈希表 + 自动排序,哈希表 + 升序排列,插入排序 3 方法求解《2363. 合并相似的物品》
哈希表 + 键名自动排序,哈希表 + 升序排列,二分查找实现插入排序 3 方法求解《2363. 合并相似的物品》
字符串的 append 操作,矩阵中两点曼哈顿距离最短,求解《1138. 字母板上的路径》
字符串的 append 操作,矩阵中两点曼哈顿距离最短,求解《1138. 字母板上的路径》
分类讨论 + 顺序遍历,固定列表 / 哈希映射 + 滑动窗口,3 解法求解《904. 水果成篮》
分类讨论 + 顺序遍历,固定列表 / 哈希映射 + 滑动窗口,3 解法求解《904. 水果成篮》
深度优先搜索,广度优先搜索和并查集,3 解法求解《886. 可能的二分法》
深度优先搜索,广度优先搜索和并查集,3 解法求解《886. 可能的二分法》
栈、顺序遍历,为可变数组添加元素,2 解法求解《1441. 用栈操作构建数组》
栈、顺序遍历,为可变数组添加元素,2 解法求解《1441. 用栈操作构建数组》
12815下页