Skip to main content

2 docs tagged with "difference array"

View all tags

Difference Array

Learn the Difference Array technique — a complement to Prefix Sum that enables O(1) range updates and O(n) reconstruction. Includes core concepts, dry runs, step-by-step examples, and multi-language implementations.