Groups
Category
The Pigeonhole Principle says if you put more items than boxes, at least one box must contain two or more items; this simple idea powers many algorithmic guarantees.
Digit DP is a dynamic programming technique for counting or aggregating values over all integers in a range that satisfy a digit-based property.