Lazy segment tree for modification of range of elements in an array in log(n) complexity

Revision en2, by minh0722, 2024-08-26 12:26:55

Just learned new data structure for problem G. Penacony that makes use of lazy segment tree in order to solve it.

References: https://www.youtube.com/watch?v=iMjd2QI6NEs (from this comment)

https://www.scaler.com/topics/data-structures/segment-tree-with-lazy-propagation/

https://mirror.codeforces.com/blog/entry/131528

Tags segment tree, range update

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English minh0722 2024-08-26 12:26:55 4
en1 English minh0722 2024-08-26 12:26:36 516 Initial revision (published)