Cody

Problem 1078. Make a diamond

Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond.

No toolbox functions please.

n = 3

m =

 *
* *
 *

n = 7

m =

   *   
  * *  
 *   *  
*     *
 *   *  
  * *
   *

Solution Stats

34.59% Correct | 65.41% Incorrect
Last Solution submitted on Jun 06, 2019

Problem Comments

Solution Comments


Problem Recent Solvers48

Problem Tags