<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Trie on</title><link>https://h30306.github.io/blog/tags/trie/</link><description>Recent content in Trie 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/trie/index.xml" rel="self" type="application/rss+xml"/><item><title>Trie</title><link>https://h30306.github.io/blog/algorithm/trie/</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/trie/</guid><description>Building a Trie from nested dicts, counting on nodes, pairing it with DFS, and when a Trie is not actually needed</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/algorithm/trie/featured.png"/></item><item><title>LeetCode 212: Word Search II</title><link>https://h30306.github.io/blog/leetcode/leetcode-212/</link><pubDate>Fri, 16 Oct 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-212/</guid><description>LeetCode 212 note: build a Trie of all words, walk it during the grid DFS, remove words once found, and prune empty nodes</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-212/featured.png"/></item><item><title>LeetCode 2416: Sum of Prefix Scores of Strings</title><link>https://h30306.github.io/blog/leetcode/leetcode-2416/</link><pubDate>Sun, 13 Sep 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-2416/</guid><description>LeetCode 2416 note: each Trie node counts the words passing through it, and a word&amp;rsquo;s answer is the sum of counts along its path</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-2416/featured.png"/></item><item><title>LeetCode 1178: Number of Valid Words for Each Puzzle</title><link>https://h30306.github.io/blog/leetcode/leetcode-1178/</link><pubDate>Fri, 28 Aug 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-1178/</guid><description>LeetCode 1178 note: a word only matters by its set of letters, so count 26-bit masks and enumerate each puzzle&amp;rsquo;s submasks</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-1178/featured.png"/></item><item><title>LeetCode 1023: Camelcase Matching</title><link>https://h30306.github.io/blog/leetcode/leetcode-1023/</link><pubDate>Thu, 19 Mar 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-1023/</guid><description>LeetCode 1023 note: two pointers character by character; anything beyond the pattern must be lowercase</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-1023/featured.png"/></item><item><title>LeetCode 2781: Length of the Longest Valid Substring</title><link>https://h30306.github.io/blog/leetcode/leetcode-2781/</link><pubDate>Wed, 14 Jan 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-2781/</guid><description>LeetCode 2781 note: forbidden words are at most 10 long, so each right end checks only the last 10 suffixes; on a match push the left end past it, using the shortest match (the rightmost start)</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-2781/featured.png"/></item><item><title>LeetCode 208: Implement Trie (Prefix Tree)</title><link>https://h30306.github.io/blog/leetcode/leetcode-208/</link><pubDate>Sat, 29 Oct 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-208/</guid><description>LeetCode 208 note: each node is a children dict plus an is_end flag; insert, search and startsWith all walk down character by character</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-208/featured.png"/></item><item><title>LeetCode 14: Longest Common Prefix</title><link>https://h30306.github.io/blog/leetcode/leetcode-14/</link><pubDate>Thu, 19 Sep 2019 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-14/</guid><description>LeetCode 14 note: bound by the shortest string and check each position across all strings; the first mismatch gives the answer&amp;rsquo;s length</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-14/featured.png"/></item></channel></rss>