Cody

Problem 44066. Number of paths on a 3d grid

Solution 1125406

Submitted on 17 Feb 2017
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   Fail
m = 2; n = 2 ; l = 5; y_correct = 30; assert(isequal(count3dPath(m,n,l),y_correct))

Error using count3dPath Too many input arguments. Error in TestPoint1 (line 3) assert(isequal(count3dPath(m,n,l),y_correct))

2   Fail
m = 8; n = 5 ; l = 2; y_correct = 3960; assert(isequal(count3dPath(m,n,l),y_correct))

Error using count3dPath Too many input arguments. Error in TestPoint2 (line 3) assert(isequal(count3dPath(m,n,l),y_correct))

3   Fail
m = 5; n = 5 ; l = 10; y_correct = 1701700; assert(isequal(count3dPath(m,n,l),y_correct))

Error using count3dPath Too many input arguments. Error in TestPoint3 (line 3) assert(isequal(count3dPath(m,n,l),y_correct))

4   Fail
m = 8; n = 4 ; l=2; y_correct = 1320; assert(isequal(count3dPath(m,n,l),y_correct))

Error using count3dPath Too many input arguments. Error in TestPoint4 (line 3) assert(isequal(count3dPath(m,n,l),y_correct))