Cody

Solution 183674

Submitted on 31 Dec 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% n = 2; p = ['* ';'**']; assert(isequal(pyramid(n),p));

Error: Assertion failed.

2   Fail
%% n = 3; p = ['* ';'** ';'***']; assert(isequal(pyramid(n),p));

Error: Assertion failed.

3   Fail
%% n = 4; p = ['* ';'** ';'*** ';'****']; assert(isequal(pyramid(n),p));

Error: Assertion failed.

4   Fail
%% n = 10; p = ['* '; '** '; '*** '; '**** '; '***** '; '****** '; '******* '; '******** '; '********* '; '**********']; assert(isequal(pyramid(n),p));

Error: Assertion failed.