CodingReported in a candidate post, May 2021
Maximize difference of products of two non-adjacent groups
Filed under KLA
The question
Given an array of minimum length 8, choose 2 groups of 2 numbers each such that the numbers within each group are not adjacent in the array. Multiply the numbers in each group and find the maximum result after subtracting one group's product from the other.
No write-up yet. Related questions below have one.
Related KLA questions
Collected from public candidate posts and coding forums. Updated Nov 2026.