Cody

Solution 2169300

Submitted on 22 Mar 2020 by Mehmed Saad
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   Pass
a=[ '************' '***** *****' '**** ****' '*** ***' '** **' '* *' '* *' '** **' '*** ***' '**** ****' '***** *****' '************']; assert(isequal(star_pattern_3(6),a))

2   Pass
a=[ '******' '** **' '* *' '* *' '** **' '******']; assert(isequal(star_pattern_3(3),a))

3   Pass
a=[ '****' '* *' '* *' '****']; assert(isequal(star_pattern_3(2),a))

4   Pass
a=[ '********************' '********* *********' '******** ********' '******* *******' '****** ******' '***** *****' '**** ****' '*** ***' '** **' '* *' '* *' '** **' '*** ***' '**** ****' '***** *****' '****** ******' '******* *******' '******** ********' '********* *********' '********************']; assert(isequal(star_pattern_3(10),a))