<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Binary-Indexed-Tree on</title><link>https://h30306.github.io/blog/zh-tw/tags/binary-indexed-tree/</link><description>Recent content in Binary-Indexed-Tree 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>Wed, 21 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://h30306.github.io/blog/zh-tw/tags/binary-indexed-tree/index.xml" rel="self" type="application/rss+xml"/><item><title>Segment Tree 與 Fenwick Tree</title><link>https://h30306.github.io/blog/zh-tw/algorithm/segment-tree/</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/zh-tw/algorithm/segment-tree/</guid><description>單點更新、區間查詢：Fenwick Tree（樹狀陣列）用 i &amp;amp; -i 跳，線段樹用遞迴把區間切兩半；兩者都是每次操作 O(log n)</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/algorithm/segment-tree/featured.png"/></item><item><title>LeetCode 4051: Count Subarrays with Distant Sums</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-4051/</link><pubDate>Mon, 19 Oct 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-4051/</guid><description>LeetCode 4051 解題筆記：前綴和 + 補集 + 區間計數，以及 k = 0 的邊界</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-4051/featured.png"/></item><item><title>LeetCode 315: Count of Smaller Numbers After Self</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-315/</link><pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-315/</guid><description>LeetCode 315 解題筆記：帶 index 的 merge sort，以及 BIT 解法</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-315/featured.png"/></item><item><title>LeetCode 2193: Minimum Number of Moves to Make Palindrome</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-2193/</link><pubDate>Wed, 02 Sep 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-2193/</guid><description>LeetCode 2193 解題筆記：貪心處理最外層：拿最後一個字元，把它最左邊的同伴換到最前面，花費是那個位置；落單的字元最後在正中間，花費是它到中間的距離</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-2193/featured.png"/></item><item><title>LeetCode 327: Count of Range Sum</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-327/</link><pubDate>Sat, 01 Aug 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-327/</guid><description>LeetCode 327 解題筆記：前綴和 + merge sort 計數，兩個指針卡出區間；重打十幾次的練習紀錄</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-327/featured.png"/></item><item><title>LeetCode 307: Range Sum Query - Mutable</title><link>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-307/</link><pubDate>Fri, 19 Jun 2026 00:00:00 +0000</pubDate><author>hwork0511@gmail.com (Wei Yi Chung)</author><guid>https://h30306.github.io/blog/zh-tw/leetcode/leetcode-307/</guid><description>LeetCode 307 解題筆記：單點更新加區間和，前綴和每次更新要 O(n)；用線段樹或 Fenwick Tree，兩種操作都是 O(log n)</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://h30306.github.io/blog/leetcode/leetcode-307/featured.png"/></item></channel></rss>