Segment Tree with Lazy Propagation | 3 Codeforces EDU Problems Solved (Range Update + Queries)
In this video, we solve ๐ญ๐ก๐ซ๐๐ ๐๐จ๐๐๐๐จ๐ซ๐๐๐ฌ ๐๐๐ ๐ฉ๐ซ๐จ๐๐ฅ๐๐ฆ๐ฌ ๐ฎ๐ฌ๐ข๐ง๐ ๐๐๐ ๐ฆ๐๐ง๐ญ ๐๐ซ๐๐๐ฌ ๐ฐ๐ข๐ญ๐ก ๐๐๐ณ๐ฒ ๐๐ซ๐จ๐ฉ๐๐ ๐๐ญ๐ข๐จ๐ง. This is the perfect follow-up if youโve already understood the concept and now want to sharpen your problem-solving skills.โฃ โฃ Weโll solve the following problems step by step with full explanation + code implementation:โฃ 1๏ธโฃ ๐๐๐๐ข๐ญ๐ข๐จ๐ง ๐๐ง๐ ๐๐ข๐ง๐ข๐ฆ๐ฎ๐ฆ โ Range add updates + Range minimum queryโฃ 2๏ธโฃ ๐๐๐๐ข๐ญ๐ข๐จ๐ง ๐๐ง๐ ๐๐ฎ๐ฆ โ Range add updates + Range sum queryโฃ 3๏ธโฃ ๐๐ฌ๐ฌ๐ข๐ ๐ง๐ฆ๐๐ง๐ญ ๐๐ง๐ ๐๐ฎ๐ฆ โ Range assignment updates + Range sum queryโฃ โฃ ๐๐ก๐๐ญ ๐ฒ๐จ๐ฎโ๐ฅ๐ฅ ๐ฅ๐๐๐ซ๐ง ๐ข๐ง ๐ญ๐ก๐ข๐ฌ ๐ฏ๐ข๐๐๐จ:โฃ โ How to apply ๐ฅ๐๐ณ๐ฒ ๐ฉ๐ซ๐จ๐ฉ๐๐ ๐๐ญ๐ข๐จ๐ง ๐ข๐ง ๐ซ๐๐๐ฅ ๐๐จ๐ฆ๐ฉ๐๐ญ๐ข๐ญ๐ข๐ฏ๐ ๐ฉ๐ซ๐จ๐ ๐ซ๐๐ฆ๐ฆ๐ข๐ง๐ ๐ฉ๐ซ๐จ๐๐ฅ๐๐ฆ๐ฌโฃ โ How to modify ๐ฌ๐๐ ๐ฆ๐๐ง๐ญ ๐ญ๐ซ๐๐๐ฌ ๐๐จ๐ซ ๐ฆ๐ข๐ง๐ข๐ฆ๐ฎ๐ฆ, ๐ฌ๐ฎ๐ฆ, ๐๐ง๐ ๐๐ฌ๐ฌ๐ข๐ ๐ง๐ฆ๐๐ง๐ญ ๐ช๐ฎ๐๐ซ๐ข๐๐ฌโฃ โ Full code walkthrough in C++ (logic can be applied in Python/Java too)โฃ โ Dry runs + Intuition to make sure you fully understand the solutionโฃ โฃ This session is designed to build mastery over segment trees with lazy propagation and prepare you for ๐๐จ๐๐๐๐จ๐ซ๐๐๐ฌ, ๐๐๐๐, ๐๐ญ๐๐จ๐๐๐ซ, ๐๐ง๐ ๐๐จ๐๐ข๐ง๐ ๐ข๐ง๐ญ๐๐ซ๐ฏ๐ข๐๐ฐ๐ฌ.โฃ โฃ ๐ ๐๐ซ๐จ๐๐ฅ๐๐ฆ ๐๐ข๐ง๐ค๐ฌ:โฃ 1. https://codeforces.com/edu/course/2/lesson/5/2/practice/contest/279653/problem/Aโฃ 2. https://codeforces.com/edu/course/2/lesson/5/2/practice/contest/279653/problem/Dโฃ 3. https://codeforces.com/edu/course/2/lesson/5/2/practice/contest/279653/problem/Fโฃ โฃโฃ ๐ ๐๐ฅ๐๐ฒ๐ฅ๐ข๐ฌ๐ญ: 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 #LazyPropagation #CompetitiveProgramming #Codeforces #DSA #RangeQueries #CodingInterview
Download
0 formatsNo download links available.