Groups
Category
Think Backwards is a problemโsolving pattern where you reverse time or direction so hard deletions become easy insertions and the final state becomes the starting point.
Sqrt decomposition on queries (time blocking) processes Q operations in blocks of size about \(\sqrt{Q}\) to balance per-query overhead and rebuild cost.