CSES Prefix sum Queries

Правка en2, от 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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский KIMJONGOOF 2024-12-12 21:57:08 199
en1 Английский KIMJONGOOF 2024-12-12 21:43:24 212 Initial revision (published)