← Practo questions

Rearrange an array to minimise an alternating product expression

Filed under Practo

The question

Rearrange an array to minimise U = arr[1] x arr[2] x (1%arr[3]) x arr[4] x (1%arr[5]) and so on.

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

Related Practo questions

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