← Amazon questions
CodingReported in a candidate post, Aug 2019

Convert 1D array to 2D array and calculate row/col max sums

Filed under Amazon

Given a 1D array and target dimensions (rows, cols) for a 2D array, reshape the 1D array into the 2D array, then calculate the sum of the maximum value in each row and the maximum value in each…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

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