<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Memoization on</title><link>https://h30306.github.io/blog/tags/memoization/</link><description>Recent content in Memoization on</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>hwork0511@gmail.com (Wei Yi Chung)</managingEditor><webMaster>hwork0511@gmail.com (Wei Yi Chung)</webMaster><copyright>© 2026 Wei Yi Chung</copyright><lastBuildDate>Tue, 20 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://h30306.github.io/blog/tags/memoization/index.xml" rel="self" type="application/rss+xml"/><item><title>Interval DP</title><link>https://h30306.github.io/blog/algorithm/interval-dp/</link><pubDate>Tue, 20 Oct 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/algorithm/interval-dp/</guid><description>Interval DP (choose the last step / merge equal ends), partition DP into k segments, palindrome tables plus partitioning, and memoizing the whole state when it is too tangled to split</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/algorithm/interval-dp/featured.png"/></item><item><title>LeetCode 773: Sliding Puzzle</title><link>https://h30306.github.io/blog/leetcode/leetcode-773/</link><pubDate>Mon, 07 Sep 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-773/</guid><description>LeetCode 773 note: there are only 6! = 720 boards, so flatten each board into a string as a BFS state, with swaps of 0 and a neighbor as the moves</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-773/featured.png"/></item><item><title>LeetCode 2328: Number of Increasing Paths in a Grid</title><link>https://h30306.github.io/blog/leetcode/leetcode-2328/</link><pubDate>Sun, 30 Aug 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-2328/</guid><description>LeetCode 2328 note: strictly increasing means no cycles; dp[cell] = 1 + Σ dp[larger neighbors], processed from largest to smallest value (or by memoized DFS), summed over all cells</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-2328/featured.png"/></item><item><title>LeetCode 488: Zuma Game</title><link>https://h30306.github.io/blog/leetcode/leetcode-488/</link><pubDate>Wed, 08 Jul 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-488/</guid><description>LeetCode 488 note: with at most 16 balls on the board and 5 in hand, memoize DFS on the whole (board, hand) state, inserting only before a same-colored ball or between two equal balls</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-488/featured.png"/></item><item><title>LeetCode 397: Integer Replacement</title><link>https://h30306.github.io/blog/leetcode/leetcode-397/</link><pubDate>Wed, 16 Nov 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-397/</guid><description>LeetCode 397 note: even numbers are always halved; for odd numbers try +1 and -1 with memoized recursion, since n is too large for an n-sized array</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-397/featured.png"/></item><item><title>LeetCode 1137: N-th Tribonacci Number</title><link>https://h30306.github.io/blog/leetcode/leetcode-1137/</link><pubDate>Tue, 18 Oct 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-1137/</guid><description>LeetCode 1137 note: like Fibonacci, roll three variables; watch the base values T0 = 0, T1 = T2 = 1 and the loop range</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-1137/featured.png"/></item><item><title>LeetCode 509: Fibonacci Number</title><link>https://h30306.github.io/blog/leetcode/leetcode-509/</link><pubDate>Thu, 25 Aug 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-509/</guid><description>LeetCode 509 note: the starting point of 1D DP; only the previous two terms are needed, so roll two variables</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-509/featured.png"/></item></channel></rss>