Groups
Category
Digit DP counts integers in a range by scanning digits from most significant to least while maintaining compact state information.
A wavelet tree is a recursive data structure built over a sequenceโs alphabet that answers rank, select, and quantile (k-th smallest) queries in O(log ฯ) time, where ฯ is the number of distinct values.