<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Brainteaser on</title><link>https://h30306.github.io/blog/zh-tw/tags/brainteaser/</link><description>Recent content in Brainteaser on</description><generator>Hugo -- gohugo.io</generator><language>zh-tw</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/zh-tw/tags/brainteaser/index.xml" rel="self" type="application/rss+xml"/><item><title>Math 數學技巧</title><link>https://h30306.github.io/blog/zh-tw/algorithm/math/</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/zh-tw/algorithm/math/</guid><description>組合計數（配對數、切分方式）、第 k 個排列逐位決定、幾何（最近點、餘弦定理、三角不等式）、排序或觀察之後變成公式的題目，以及直式進位、進位制轉換和快速冪</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/algorithm/math/featured.png"/></item><item><title>LeetCode 3828: Final Element After Subarray Deletions</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-3828/</link><pubDate>Sun, 01 Feb 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-3828/</guid><description>LeetCode 3828 解題筆記：Alice 第一步就能只留下頭或尾，所以至少拿到 max(頭, 尾)；Bob 每次也能只留下目前的頭或尾，而 Alice 的一次刪除最多改變其中一端，所以答案就是 max(頭, 尾)</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-3828/featured.png"/></item><item><title>LeetCode 2745: Construct the Longest New String</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-2745/</link><pubDate>Tue, 22 Jul 2025 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-2745/</guid><description>LeetCode 2745 解題筆記：AA 和 BB 必須交替出現，最多用 min(x, y) 對，多的那種還能再多放一個；AB 全部都能接上</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-2745/featured.png"/></item><item><title>LeetCode 1025: Divisor Game</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-1025/</link><pubDate>Tue, 27 Sep 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-1025/</guid><description>LeetCode 1025 解題筆記：dp[i] = 存在 i 的因數 x 讓 dp[i - x] 是輸；觀察後答案就是 n 是偶數</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-1025/featured.png"/></item><item><title>LeetCode 292: Nim Game</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-292/</link><pubDate>Tue, 23 Aug 2022 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-292/</guid><description>LeetCode 292 解題筆記：剩 4 的倍數顆石頭的人必輸，所以 n % 4 != 0 時先手贏</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-292/featured.png"/></item></channel></rss>