CSES Prefix sum Queries

Revision en2, by KIMJONGOOF, 2024-12-12 21:57:08

I tried attempting CSES Prefix Sum Queries using lazy segment tree.

My Solution

Can someone explain to me exactly why my logic fails??

*Edit -> I realized that I was not changing the values in the original array and so I included that in the solution and it still fails -> Solution

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English KIMJONGOOF 2024-12-12 21:57:08 199
en1 English KIMJONGOOF 2024-12-12 21:43:24 212 Initial revision (published)