<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>String-Matching on</title><link>https://h30306.github.io/blog/tags/string-matching/</link><description>Recent content in String-Matching 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>Wed, 07 Sep 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://h30306.github.io/blog/tags/string-matching/index.xml" rel="self" type="application/rss+xml"/><item><title>LeetCode 796: Rotate String</title><link>https://h30306.github.io/blog/leetcode/leetcode-796/</link><pubDate>Wed, 07 Sep 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-796/</guid><description>LeetCode 796 note: goal is a rotation of s exactly when the lengths match and goal occurs in s + s</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-796/featured.png"/></item><item><title>LeetCode 572: Subtree of Another Tree</title><link>https://h30306.github.io/blog/leetcode/leetcode-572/</link><pubDate>Sat, 27 Aug 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-572/</guid><description>LeetCode 572 note: for every node of root, check whether its subtree equals subRoot; recurse with isSubtree, not by comparing only the children</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-572/featured.png"/></item><item><title>LeetCode 459: Repeated Substring Pattern</title><link>https://h30306.github.io/blog/leetcode/leetcode-459/</link><pubDate>Wed, 24 Aug 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-459/</guid><description>LeetCode 459 note: s is a repetition of a substring exactly when s occurs in s + s with its first and last characters removed</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-459/featured.png"/></item><item><title>LeetCode 28: Find the Index of the First Occurrence in a String</title><link>https://h30306.github.io/blog/leetcode/leetcode-28/</link><pubDate>Wed, 11 May 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-28/</guid><description>LeetCode 28 note: try matching needle at every start, or use str.find; index raises when not found</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-28/featured.png"/></item></channel></rss>