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
- Count how many times MaxVal updates when matching two signal arrays
- Count arrays that fit given differences within lower and upper bounds
- Unique and common elements between two arrays
- Highest-paid employee per department, extended to top three
- Array balancing, travel cost optimization, and car database design
Collected from public candidate posts and coding forums. Updated Nov 2026.