โ† KLA questions
CodingReported in a candidate post, Mar 2021

Maximize difference of multiplied non-adjacent groups, sort 2D array, and absolute differences

Filed under KLA

The question

First, from an array of length at least 8, choose 2 groups of 2 non-adjacent numbers each, multiply numbers within groups, and maximize the difference between the two products. Second, return a sorted 1D array given a 2D array sorted row-wise and column-wise. Third, find the absolute sum between consecutive elements, replace all occurrences of a given number, and repeat.

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

Related KLA questions

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