Cody

Solution 2105558

Submitted on 25 Jan 2020 by Asif Newaz
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
m= 1; n=1; y_correct = [1,1]; assert(isequal(sq_grid(m,n),y_correct))

2   Pass
m= 2; n=4; y_correct = [30,11]; assert(isequal(sq_grid(m,n),y_correct))

3   Pass
m= 10; n=2; y_correct = [165,29]; assert(isequal(sq_grid(m,n),y_correct))

4   Pass
m= 1000; n=1; y_correct = [500500,1000]; assert(isequal(sq_grid(m,n),y_correct))

5   Pass
m= 164; n=253; y_correct = [434732430, 2687960]; assert(isequal(sq_grid(m,n),y_correct))

Suggested Problems

More from this Author145