Codeforces 2300 Rated Problem Solved | The Child and Sequence | Advanced Segment Tree
In this video, we solve an ๐๐๐ฏ๐๐ง๐๐๐ ๐ฌ๐๐ ๐ฆ๐๐ง๐ญ ๐ญ๐ซ๐๐ ๐ฉ๐ซ๐จ๐๐ฅ๐๐ฆ โ โ๐๐ก๐ ๐๐ก๐ข๐ฅ๐ ๐๐ง๐ ๐๐๐ช๐ฎ๐๐ง๐๐โ (๐๐จ๐๐๐๐จ๐ซ๐๐๐ฌ ๐๐๐๐ ๐ซ๐๐ญ๐๐).โฃโฃ This problem combines range sum queries, range modulo updates, and point updates all in one, making it a fantastic challenge to test your Segment Tree mastery.โฃโฃ โฃโฃ ๐๐ก๐๐ญ ๐ฐ๐ ๐๐จ๐ฏ๐๐ซ ๐ข๐ง ๐ญ๐ก๐ข๐ฌ ๐ฏ๐ข๐๐๐จ:โฃโฃ โ Problem explanation and constraints breakdownโฃโฃ โ Why a normal approach fails & why segment tree is neededโฃโฃ โ Using segment tree with sum + max trackingโฃโฃ โ Handling operations efficiently:โฃโฃ - Range Sum Queryโฃโฃ - Range Modulo Updateโฃโฃ - Point Updateโฃโฃ โฃโฃ โ Full step-by-step code walkthrough in C++โฃโฃ โ Competitive programming tips & intuition for tackling ๐๐๐๐+ ๐ซ๐๐ญ๐๐ ๐ฉ๐ซ๐จ๐๐ฅ๐๐ฆ๐ฌโฃโฃ โฃโฃ By the end of this video, youโll gain confidence in solving hard segment tree problems that frequently appear in ๐๐จ๐๐๐๐จ๐ซ๐๐๐ฌ, ๐๐ญ๐๐จ๐๐๐ซ, ๐๐ง๐ ๐๐๐๐ ๐๐จ๐ง๐ญ๐๐ฌ๐ญ๐ฌ.โฃโฃ โฃโฃโฃ ๐ ๐๐ซ๐จ๐๐ฅ๐๐ฆ ๐๐ข๐ง๐ค:โฃ https://codeforces.com/contest/438/problem/Dโฃโฃ โฃโฃโฃโฃ ๐ ๐๐ฅ๐๐ฒ๐ฅ๐ข๐ฌ๐ญ: https://youtube.com/playlist?list=PLtfqa971vD5GTQjH9U0H6kiq9cQlFFa5k&si=YKuHrjhvmUlXoTBMโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ โฃโฃโฃโฃ ๐ Donโt forget to check the previous videos if youโre new to Segment Trees!โฃโฃโฃโฃ โฃโฃโฃโฃ ๐ก Perfect for:โฃโฃโฃโฃ - Competitive programmersโฃโฃโฃโฃ - Data structure & algorithms learnersโฃโฃโฃโฃ - Coding interview prepโฃโฃโฃโฃ โฃโฃโฃโฃ ๐ Watch this till the end to fully understand the intuition, not just the code.โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ Whether you are a beginner or looking to strengthen your problem-solving skills, this course will help you ๐ญ๐ก๐ข๐ง๐ค ๐ฅ๐ข๐ค๐ ๐ ๐๐จ๐ฆ๐ฉ๐๐ญ๐ข๐ญ๐ข๐ฏ๐ ๐ฉ๐ซ๐จ๐ ๐ซ๐๐ฆ๐ฆ๐๐ซ ๐๐ง๐ ๐๐ฉ๐ฉ๐ฅ๐ฒ ๐ฌ๐๐ ๐ฆ๐๐ง๐ญ ๐ญ๐ซ๐๐ ๐๐จ๐ง๐๐ข๐๐๐ง๐ญ๐ฅ๐ฒ ๐ข๐ง ๐๐จ๐ง๐ญ๐๐ฌ๐ญ๐ฌ.โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ ๐๐๐ฅ๐๐จ๐ฆ๐ ๐ญ๐จ ๐ญ๐ก๐ ๐๐ก๐๐ง๐ง๐๐ฅ!โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ I create content on ๐๐จ๐ฆ๐ฉ๐๐ญ๐ข๐ญ๐ข๐ฏ๐ ๐๐ซ๐จ๐ ๐ซ๐๐ฆ๐ฆ๐ข๐ง๐ , ๐๐๐ญ๐ ๐๐ญ๐ซ๐ฎ๐๐ญ๐ฎ๐ซ๐๐ฌ & ๐๐ฅ๐ ๐จ๐ซ๐ข๐ญ๐ก๐ฆ๐ฌ (๐๐๐), ๐๐ง๐ ๐๐๐๐ก๐ง๐ข๐๐๐ฅ ๐๐ง๐ญ๐๐ซ๐ฏ๐ข๐๐ฐ ๐๐ซ๐๐ฉ๐๐ซ๐๐ญ๐ข๐จ๐ง.โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ If you find this video helpful, donโt forget to:โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ Like the videoโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ฌ Comment your doubts/questions (I reply to everyone!)โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ Subscribe and turn on notifications to never miss upcoming tutorialsโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ Connect with me:โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ฆ X: https://x.com/Yash_Poonia_โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ผ LinkedIn: https://www.linkedin.com/in/yashpoonia/โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ป GitHub: https://github.com/yash7xmโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ ๐ Discord: https://discord.gg/cYeENy6Cโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ โฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃโฃ #SegmentTree #Codeforces #CompetitiveProgramming #DSA #AdvancedDSA #RangeQueries #CodingInterview
Download
0 formatsNo download links available.