Cody

Solution 1970669

Submitted on 10 Oct 2019 by Nikolaos Nikolaou
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
a = '0205'; b = '8120'; y_correct = 7915; A = fread(fopen('yourSubtract.m')); assert(~any(regexpi(char(A)','str2num|str2double'))); assert(isequal(yourSubtract(a,b),y_correct))

m1 = 1 m1 = 1 3 m1 = 1 3 1 m1 = 1 3 1 6 m1 = 0 2 0 5 m2 = 8 1 2 0 m1 = 205 m2 = 8120 y = 7915

2   Pass
a = '12589'; b = '78956'; y_correct = 66367; assert(isequal(yourSubtract(a,b),y_correct))

m1 = 2 m1 = 2 3 m1 = 2 3 6 m1 = 2 3 6 9 m1 = 2 3 6 9 10 m1 = 1 2 5 8 9 m2 = 7 8 9 5 6 m1 = 12589 m2 = 78956 y = 66367

Suggested Problems

More from this Author1