签到
https://blog.51cto.com/user/sign
https://leetcode.cn/profile/info/
学习参考
https://labuladong.github.io/algo/
https://programmercarl.com/
https://leetcode.cn/circle/discuss/G0n5iY/
https://www.chengxuchu.com/
算法
回溯法
排列问题 | |
排列问题 | |
组合问题 | |
组合问题 | |
组合问题 | |
组合问题 | |
组合问题 | |
子集问题 | |
子集问题 | |
131.分割回文串 | 分割问题 |
93.复原IP地址 | 分割问题 |
51.N皇后 | 棋盘问题 |
37.解数独 | 棋盘问题 |
491.递增子序列 | |
332.重新安排行程 |
字符串
双指针
二分法
【LeeCode】1011. 在 D 天内送达包裹的能力
【LeeCode】1482. 制作 m 束花所需的最少天数
位运算
只出现一次的数字 II
只出现一次的数字 III
数组中两个数的最大异或值
重复的DNA序列
最大单词长度乘积
单调栈
739. 每日温度 | |
数组
【LeeCode】448. 找到所有数组中消失的数字
排列
数组
78. 子集 | |
46. 全排列 | |
77. 组合 |
字符串
字符串全排列 |
括号
树
链表
贪心算法
| |
| |
动态规划
背包问题大全
动态规划的的四个解题步骤是:
- 定义子问题
- 写出子问题的递推关系
- 确定 DP 数组的计算顺序
- 空间优化(可选)
子序列(不连续) | |
子序列(连续) | |
子序列(连续) | |
子序列(连续) | |
前缀和思想
模板
滑动窗口
模板1(推荐)
模板2:
回溯法
回文字符串
方案1: 递归处理
方案2: 首字符等于尾字符
方案3: 字符翻转后判断是否跟原字符相同