Published onJune 3, 2026算法008-并查集#算法#中等#笔记#并查集本次学习并查集,用于解决大规模集合中,哪些是具有连通性,可以自成一个组合的,更形象的说法,在一个树丛中,把每棵树分开。[按公因数计算最大组件大小](https://leetcode.cn/problems/largest-component-size-by-common-factor)
Published onJune 1, 2026算法007-Z算法(kmp算法扩展)#算法#中等#笔记#kmp算法#z算法本次学习z算法,基于kmp的思想,求s[i, n-1]与原s的最长公共前缀。[构造字符串的总得分和](https://leetcode.cn/problems/sum-of-scores-of-built-strings)
Published onMay 28, 2026算法006-分治#算法#中等#笔记#分治本贴学习分治,其核心思想是将一个复杂的问题先拆开解,最后合在一起得出最终答案。下面,直接利用一些经典题,来具体分析。包括:[漂亮数组](https://leetcode.cn/problems/beautiful-array)
Published onMay 19, 2026算法005-线段树(优化-矩阵中的局部最大值 II)#算法#中等#笔记#ST表#线段树#数组本贴依托于[矩阵中的局部最大值 II](https://leetcode.cn/problems/largest-local-values-in-a-matrix-ii)的题,从一位到二维学习线段树,并基于上一章做优化
Published onMay 18, 2026算法004-ST表(矩阵中的局部最大值 II)#算法#中等#笔记#ST表#数组本贴依托于[矩阵中的局部最大值 II](https://leetcode.cn/problems/largest-local-values-in-a-matrix-ii)的题,从一位到二维学习ST表
Published onMay 12, 2026算法003-dijkstra(购买苹果的最低成本 II)#算法#困难#笔记#dijkstra#贪心#无向图本贴依托于[购买苹果的最低成本 II](https://leetcode.cn/problems/minimum-cost-to-buy-apples-ii/)的题,回顾dijkstra经典最短路径算法
Published onMay 8, 2026算法002-最长递增子序列#算法#困难#笔记#动态规划#贪心#二分查找3道题解法类似,复杂度逐步提升。最长递增子序列:https://leetcode.cn/problems/longest-increasing-subsequence,俄罗斯套娃信封问题:https://leetcode.cn/problems/russian-doll-envelopes,删除元素后最大固定点数目:https://leetcode.cn/problems/maximize-fixed-points-after-deletions
Published onApril 30, 2026算法001-网格图操作后的最大分数#算法#困难#笔记#动态规划#dfs原题链接https://leetcode.cn/problems/maximum-score-from-grid-operations