<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pigeonhole-Principle on</title><link>https://h30306.github.io/blog/tags/pigeonhole-principle/</link><description>Recent content in Pigeonhole-Principle 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, 21 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://h30306.github.io/blog/tags/pigeonhole-principle/index.xml" rel="self" type="application/rss+xml"/><item><title>Bucket Sort and the Pigeonhole Principle</title><link>https://h30306.github.io/blog/algorithm/bucket-sort/</link><pubDate>Wed, 21 Oct 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/algorithm/bucket-sort/</guid><description>Split the value range into n - 1 buckets; the largest gap can never fall inside one bucket, so keeping each bucket&amp;rsquo;s minimum and maximum finds the maximum adjacent difference in linear time</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/algorithm/bucket-sort/featured.png"/></item><item><title>LeetCode 961: N-Repeated Element in Size 2N Array</title><link>https://h30306.github.io/blog/leetcode/leetcode-961/</link><pubDate>Mon, 26 Sep 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/leetcode/leetcode-961/</guid><description>LeetCode 961 note: the other n values are distinct, so the first value seen twice is the answer</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-961/featured.png"/></item></channel></rss>