Cody

Problem 46591. Ackerman Function

Solution 2971567

Submitted on 20 Sep 2020 by William
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; a_correct = 3; assert(isequal(ack(m,n),a_correct))

2   Pass
m = 3; n = 4; a_correct = 125; assert(isequal(ack(m,n),a_correct))

3   Pass
m = 3; n = 2; a_correct = 29; assert(isequal(ack(m,n),a_correct))

Suggested Problems

Community Treasure Hunt

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

Start Hunting!