Groups
Category
The prefix function π of a string tells, for every position, the length of the longest proper prefix that is also a suffix of the prefix ending there.
Digit DP counts integers in a range by scanning digits from most significant to least while maintaining compact state information.