Mo's algorithm
Problems
- D-query
- Powerful Array
- Curious Cupid
- Jeff and Removing Periods
- Tree and Queries
- Sherlock and Inversions
- Zero Query
Techniques
It's possible to adapt Mo's algorithm to data structures that only support insertion, but not deletion. 1