Enamul_Hasan85's blog

By Enamul_Hasan85, history, 3 hours ago, In English

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++):
  • Vote: I like it
  • +6
  • Vote: I do not like it