<?xml version="1.0" encoding="utf-8"?>
<!--  RSS generated by phpcms.cn RSS Builder [2026-03-10 05:53:02]  --> 
<rss version="2.0" xmlns:im="http://purl.org/rss/1.0/item-images/" xmlns:dc="http://purl.org/dc/elements/1.1/" >
<channel>
<pubDate>Tue, 10 Mar 2026 05:53:02 +0800</pubDate>
<lastBuildDate>Tue, 10 Mar 2026 05:53:02 +0800</lastBuildDate>
<docs>https://www.zhoulujun.cn</docs>
<link>https://www.zhoulujun.cn</link>
<title>algorithm</title>
<image>
<title>algorithm</title>
<url><![CDATA[]]></url>
<link>https://www.zhoulujun.cn</link>
</image>
<webMaster>https://www.zhoulujun.cn</webMaster>
<generator>https://www.zhoulujun.cn</generator>
<ttl>60</ttl>
<dc:creator>https://www.zhoulujun.cn</dc:creator>
<dc:date>Tue, 10 Mar 2026 05:53:02 +0800</dc:date>
<item>
<title><![CDATA[DP笔记(19)：高楼扔鸡蛋（鸡蛋掉落）]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9193.html]]></link>
<description><![CDATA[<img src=/uploadfile/images/2024/07/thumb_150_150_20240731215030153355248.png border='0' /><br />高楼扔鸡蛋1884  鸡蛋掉落-两枚鸡蛋 https:  leetcode cn problems egg-drop-with-2-eggs-and-n-floors description 887  鸡蛋掉落 htt   ]]></description>
<pubDate>2024-07-30 19:57:28</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9193.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[回溯之分割与子集：分割回文串/复原IP地址、子集/子序]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9164.html]]></link>
<description><![CDATA[<img src=/uploadfile/images/2024/07/thumb_150_150_20240711115327443275583.jpg border='0' /><br />如果把 子集问题、组合问题、分割问题都抽象为一棵树的话，那么组合问题和分割问题都是收集树的叶子节点，而子集问题是找树的所有节点！其   ]]></description>
<pubDate>2024-07-10 22:48:41</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9164.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[回溯算法解题套路模板：从排列与组合为案例开讲]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9163.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/07/20240709204744860113915.png border='0' /><br />回溯法也可以叫做回溯搜索法，它是一种搜索的方。回溯是递归的副产品，只要有递归就会有回溯。想让回溯法高效一些，可以加一些剪枝的操作]]></description>
<pubDate>2022-08-25 20:40:00</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9163.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP(18)：粉刷房子系列问题]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9161.html]]></link>
<description><![CDATA[粉刷房子总共有三题256 粉刷房子（中等）265 粉刷房子 II（困难）1473 粉刷房子 III（困难）]]></description>
<pubDate>2024-07-08 12:01:21</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9161.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[面试中关于数组的常见问题]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9160.html]]></link>
<description><![CDATA[寻找数组中第二小的元素第一种：先排序然后找出第一个大于array[0]的数 第二种：定义两个变量分别代表第一小和第二小的数,以此和数组的数   ]]></description>
<pubDate>2024-07-06 21:33:33</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9160.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[岛屿算法（求岛屿数量与岛屿面积）]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9148.html]]></link>
<description><![CDATA[<img src=/uploadfile/images/2024/03/thumb_150_150_20240307210636754075049.png border='0' /><br />岛屿算法涉及 深度优先搜索（DFS）、广度优先搜索（BFS）、并查集（UF），一般岛屿算法题会设计请数量与求面积。]]></description>
<pubDate>2024-06-27 10:29:26</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9148.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(4)：概率 DP之抛掷硬币、]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9145.html]]></link>
<description><![CDATA[抛掷硬币有一些不规则的硬币。在这些硬币中，prob[i] 表示第 i 枚硬币正面朝上的概率。请对每一枚硬币抛掷 一次，然后返回正面朝上的硬   ]]></description>
<pubDate>2024-06-25 17:26:57</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9145.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[螺旋矩阵(spiral-matrix)解题思路分析与总结]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9144.html]]></link>
<description><![CDATA[<img src=/uploadfile/images/2024/06/thumb_150_150_20240626211816231105468.png border='0' /><br />螺旋矩阵 不涉及到什么算法，就是模拟过程，但却十分考察对代码的掌控能力。个人推荐思路就是定义四个边界（左右、上下类似对撞双指针）。当然也可以直接计算所跑圈数，跑圈过程中去思考边界问题]]></description>
<pubDate>2024-06-25 12:04:20</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9144.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(17)：DP键盘打印系列，2/4键键盘]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9143.html]]></link>
<description><![CDATA[两个键的键盘与四键键盘都是打印字符串，都可以用动态规划来求解。思考一下对于这些问题有哪些「状态」？或者换句话说，我们需要知道什么信息，才能将原问题分解为规模更小的子问题？]]></description>
<pubDate>2024-06-23 18:05:53</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9143.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(16)：递推型动态规划——不同路径]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9142.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/06/20240601180734663017996.png border='0' /><br />不同路径两题的考察点主要有以下几点：动态规划的思想和方法、状态定义和递推公式、边界条件的处理]]></description>
<pubDate>2024-06-23 17:57:11</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9142.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(15)：递推型动态规划概念性总结]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9141.html]]></link>
<description><![CDATA[<img src=/uploadfile/images/2024/06/thumb_150_150_20240603221733565993604.png border='0' /><br />​ 动态规划是一种求最优化递推问题，动态规划中涉及到决策过程； 所以动态规划是递推问题的子问题；]]></description>
<pubDate>2024-06-23 17:56:09</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9141.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(14)：区间动态规划]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9140.html]]></link>
<description><![CDATA[区间动态规划]]></description>
<pubDate>2024-06-23 17:54:40</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9140.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(13)：区间DP——买卖股票问题]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9135.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/05/20240523212806767112127.png border='0' /><br />股票系列问题已经属于动态规划问题中较困难的了买卖股票问题合集买卖股票的最佳时机（121  Best Time to Buy and Sell Stock）：只   ]]></description>
<pubDate>2024-06-21 11:37:30</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9135.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(12)：区间动态规划]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9129.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/05/20240523212806767112127.png border='0' /><br />区间动态规划]]></description>
<pubDate>2024-06-14 11:00:25</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9129.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(11)：背包问题之依赖背包、树形背包(整理中，未完)]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9125.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/05/20240527123023752073451.png border='0' /><br />本篇更偏向于竞赛题，但是现在面试越来越卷，有时间也还是啃一下。有依赖的背包问题，这种背包问题的物品间存在某种“依赖”的关系。树形背包感觉应用场景很少]]></description>
<pubDate>2024-06-12 11:53:49</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9125.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(10)：背包相关问题，零钱兑换]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9124.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/05/20240527123023752073451.png border='0' /><br />背包相关问题宣讲一些典型案例]]></description>
<pubDate>2024-06-12 19:12:03</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9124.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(9)：完全/多重/分组背包问题分析与总结]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9123.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/06/20240612170448736638520.png border='0' /><br />几乎所有的「背包问题」都是基于「01 背包」演变而来！完全背包、多重背包、分组背包都可以由0-1背包去推导，本文讲解这三种的背包的解法。]]></description>
<pubDate>2024-06-12 12:17:12</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9123.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(8)：动态规划背包相关问题学习总结——从01背包开始]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9120.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/06/20240601172105589465607.png border='0' /><br />背包问题是动态规划里的非常重要的一部分，是线性 DP 问题中一类经典而又特殊的模型。在看编程随想的的基础上，加上个人的的理解，作为笔记使用。]]></description>
<pubDate>2024-06-09 10:39:36</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9120.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(7)：DP从二维到多维解题]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9117.html]]></link>
<description><![CDATA[<img src=https://www.zhoulujun.cn/uploadfile/images/2024/06/20240601172105589465607.png border='0' /><br />金字塔,多维线性动态规划]]></description>
<pubDate>2024-06-03 22:08:37</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9117.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
<item>
<title><![CDATA[DP笔记(6)：矩阵线性 DP 问题]]></title>
<link><![CDATA[/html/theory/algorithm/leetcode/9115.html]]></link>
<description><![CDATA[<img src=/uploadfile/images/2024/06/thumb_150_150_20240601172105589465607.png border='0' /><br />​ 动态规划是一种求最优化递推问题，动态规划中涉及到决策过程； 所以动态规划是递推问题的子问题；]]></description>
<pubDate>2024-06-01 16:53:33</pubDate>
<guid><![CDATA[/html/theory/algorithm/leetcode/9115.html]]></guid>
<author>https://www.zhoulujun.cn</author>
</item>
</channel>
</rss>
