<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Segment-Tree on Yu-Cheng's Notes</title><link>https://linkingmon.github.io/blog/tags/segment-tree/</link><description>Recent content in Segment-Tree on Yu-Cheng's Notes</description><generator>Hugo -- 0.166.0</generator><language>en-us</language><lastBuildDate>Sun, 09 Mar 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://linkingmon.github.io/blog/tags/segment-tree/index.xml" rel="self" type="application/rss+xml"/><item><title>LC 3479 - Fruits Into Baskets III</title><link>https://linkingmon.github.io/blog/coding/lc-3479/</link><pubDate>Sun, 09 Mar 2025 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/coding/lc-3479/</guid><description>&lt;p&gt;[translate by ChatGPT]
This problem felt similar to the first one, but I misunderstood the problem statement at the beginning. I also feel that the description of the problem wasn’t very clear. Even toward the end I still wasn’t completely sure what the problem was trying to say.&lt;/p&gt;
&lt;p&gt;Even when I tried to solve it based on my interpretation, I still couldn’t come up with a solution.&lt;/p&gt;
&lt;p&gt;Later I saw that the official solution uses a segment tree, and only then did I understand the intended approach. At first I didn’t quite understand it, but eventually I figured out what the data structure is doing.&lt;/p&gt;</description></item></channel></rss>