Cody

Solution 1441121

Submitted on 15 Feb 2018 by Dishant Varshney
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
a = 7; b = 4; y_correct = 8638; assert(isequal(pattern_sum(a,b),y_correct))

2   Pass
a = 5; b = 3; y_correct = 615; assert(isequal(pattern_sum(a,b),y_correct))

3   Pass
a = 10; b = 4; y_correct = 12340; assert(isequal(pattern_sum(a,b),y_correct))

4   Pass
a = 56; b = 5; y_correct = 691320; assert(isequal(pattern_sum(a,b),y_correct))