โ† PubMatic questions
CodingReported in a candidate post, Aug 2022

Max score shuffle of a sequence

Filed under PubMatic

The question

Rearrange a sequence so that as many elements as possible are larger than the original element at the same index.

No write-up yet. Related questions below have one.

Related PubMatic questions

Collected from public candidate posts and coding forums. Updated Nov 2026.