โ† OLA questions

Sort an array to minimize a weighted position sum

Filed under OLA

The question

Sort an array in increasing order and report the value V, defined as the sum over elements of original 1-based position times sorted 1-based position, with V to be minimal.

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

Related OLA questions

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