My Solutions for the CodeForces ITMO Academy Segment Tree Course (Part 2_4)

Revision en4, by Enamul_Hasan85, 2025-02-01 18:53:42

Hello CodeForces community,

I completed the CodeForces ITMO Academy Course on Segment Tree Part 2 and wanted to share my solutions and explanations (only step 4) for the problems covered in these parts. I hope this will help others who are working through the course or anyone looking to strengthen their understanding of segment trees.

I have uploaded all my solutions to GitHub, which you can find here.

Part 2: Step 4 Practice Problems

Problem A: Assignment, Addition, and Sum
Solution:
Code(C++):
Problem B: Add Arithmetic Progression On Segment
Solution:
Code(C++):
Problem C: Painter
Solution:
Code(C++):
Problem D: Problem About Weighted Sum
Solution:
Code(C++):
Problem E: Wall
Solution:
Code(C++):
Problem F: Mountain
Solution:
Code(C++):
Tags segment trees, itmo academy, #lazy propagation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Enamul_Hasan85 2025-02-01 18:53:42 2
en3 English Enamul_Hasan85 2025-02-01 18:50:34 10 Tiny change: 'Part-2_4/F.cpp)\n</s' -> 'Part-2_4/F_STPointer.cpp)\n</s'
en2 English Enamul_Hasan85 2025-02-01 18:49:12 0 (published)
en1 English Enamul_Hasan85 2025-02-01 18:47:38 10595 Initial revision (saved to drafts)