Write a program that randomly generate a 2020 two-dimensional array,
is a peak (either a maximum or a minimum) if all its neighbors (there should be either 3, 5, or 8 neighbors for any cell) are less than
The program should output all elements in
, with their indices, which are peak. It should also output if a peak is a maximum or a minimum.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.