Cody

Solution 2286612

Submitted on 16 May 2020 by Rafael Hernandez-Walls
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
assert(isequal(spi_out_2(5),spiral(5)))

2   Pass
assert(isequal(spi_out_2(3),spiral(3)))

3   Pass
assert(isequal(spi_out_2(30),spiral(30)))

4   Pass
assert(isequal(spi_out_2(15),spiral(15)))

5   Pass
assert(isequal(spi_out_2(100),spiral(100)))

6   Pass
assert(isequal(spi_out_2(2555),spiral(2555)))

7   Pass
filetext = fileread('spi_out_2.m'); assert(isempty(strfind(filetext, 'spiral')),'spiral() forbidden')

Suggested Problems

More from this Author145