Concepts3
⚙️AlgorithmIntermediate
Small-to-Large Merging
Small-to-large merging is a technique where you always merge the smaller container into the larger one to guarantee low total work.
#small-to-large merging#dsu on tree#sack technique+11
⚙️AlgorithmIntermediate
Sliding Window
Sliding window is a technique that moves a contiguous segment (window) across an array or string while maintaining some running information like sum, count, or max.
#sliding window#two pointers#variable window+11
🗂️Data StructureAdvanced
Dynamic Segment Tree
A dynamic segment tree stores values over a huge coordinate range by creating nodes only when an operation touches their interval.
#dynamic segment tree#sparse segment tree#lazy propagation+12