Cody

Solution 1925150

Submitted on 7 Sep 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
start=1000; finish=1023; y_correct = 1; assert(isequal(diff_digits(start,finish),y_correct))

temp = 1

2   Pass
start=1000; finish=9999; y_correct = 4536; assert(isequal(diff_digits(start,finish),y_correct))

temp = 4536

3   Pass
start=1234; finish=5678; y_correct = 2273; assert(isequal(diff_digits(start,finish),y_correct))

temp = 2273

4   Pass
assert(isequal(diff_digits(4321,6789),1210))

temp = 1210

5   Pass
assert(isequal(diff_digits(1988,2012),0))

temp = 0