Cody

Problem 44066. Number of paths on a 3d grid

Solution 3008716

Submitted on 30 Sep 2020 by Luke CHAO
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 ; l = 5; y_correct = 30; assert(isequal(count3dPath(m,n,l),y_correct))

ans = 30

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

ans = 3960

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

ans = 1701700

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

ans = 1320

Suggested Problems

More from this Author9

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!