Cody

Problem 1448. Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.

For example, if n=2 (maximum value), the output matrix should be

 [1 1 1 1 1;
  1 2 2 2 1;
  1 2 1 2 1;
  1 2 2 2 1;
  1 1 1 1 1]

where you go from inside to outside starting from 1 to 2(maximum value) and again move back from 2 to 1.

Solution Stats

51.78% Correct | 48.22% Incorrect
Last Solution submitted on Jul 03, 2020

Problem Comments

Solution Comments

Problem Recent Solvers102

Suggested Problems

More from this Author10

Problem Tags