Cody

Solution 1125412

Submitted on 17 Feb 2017 by James
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
NdRowVector = [3,3,3,3,3]; y_correct = 113400; assert(isequal(countNdPath(NdRowVector),y_correct))

y = 113400

2   Pass
NdRowVector = [1,3,3,3,3,1,1,1,3,3]; y_correct = 7484400; assert(isequal(countNdPath(NdRowVector),y_correct))

y = 7484400

3   Pass
NdRowVector = [2,2,2,2,2,2,2,1,1,2,2,2,2]; y_correct = 39916800; assert(isequal(countNdPath(NdRowVector),y_correct))

y = 39916800