first, reshuffle indices so
for each , want to find largest subarray such that itβs some prefix of indices
for instance
segments , , (this is the maximum)
can be done by querying smallest empty value
first, reshuffle indices so
for each , want to find largest subarray such that itβs some prefix of indices
for instance
segments , , (this is the maximum)
can be done by querying smallest empty value