Cody

Solution 1055755

Submitted on 18 Nov 2016 by DONG HYUN KIM
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=2 n=2 y_correct =6; assert(isequal(wayz_in_maze(m,n),y_correct))

m = 2 n = 2 y1 = 1 1 1 1 2 3 1 3 6 y = 6

2   Pass
m=3 n=4 y_correct =35; assert(isequal(wayz_in_maze(m,n),y_correct))

m = 3 n = 4 y1 = 1 1 1 1 1 1 2 3 4 5 1 3 6 10 15 1 4 10 20 35 1 5 15 35 70 y = 35

3   Pass
m=5 n=6 y_correct =462; assert(isequal(wayz_in_maze(m,n),y_correct))

m = 5 n = 6 y1 = 1 1 1 1 1 1 1 1 2 3 4 5 6 7 1 3 6 10 15 21 28 1 4 10 20 35 56 84 1 5 15 35 70 126 210 1 6 21 56 126 252 462 1 7 28 84 210 462 924 y = 462

Suggested Problems

More from this Author12