Hashing PatternsPrefix-sum hashing and complement hashing — two of the highest-leverage patterns in algorithmic problem solving.