Question: 8) Given a non-empty 2D array of ints and 2 ints that represent a row and a column that exists in the 2D array return

8) Given a non-empty 2D array of ints and 2 ints that represent a row and a column that exists in the 2D array return an array of all the elements that are at most 2 elements away from the element at (row, col). You will basically be trying to return the elements in a 55 section of the 2D array where (row, col) is the center as a 1D array. The elements returned should be in row major order. Feel free to write helper methods. (12 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
