Cody

Solution 1608872

Submitted on 14 Aug 2018
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
n = 1; m_correct = 2; assert(isequal(towers(n),m_correct))

2   Pass
n = 2; m_correct = 5; assert(isequal(towers(n),m_correct))

3   Pass
n = 3; m_correct = 10; assert(isequal(towers(n),m_correct))

4   Fail
n = 15; m_correct = 4178; assert(isequal(towers(n),m_correct))

Undefined function or variable 'm'. Error in towers (line 9) m = 2*towers(m-1) + towers(m-3); Error in Test4 (line 3) assert(isequal(towers(n),m_correct))