Cody

Problem 1078. Make a diamond

Created by Amin Bashi in Community

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.57% Correct | 65.43% Incorrect
Last solution submitted on Jun 06, 2019

Problem Comments

Solution Comments