Problem 1162. Happy 2013...

Solution 1114152

Submitted on 2 Feb 2017 by Daniel Pereira
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))

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

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

4   Pass

5   Pass

Suggested Problems

More from this Author80

Community Treasure Hunt

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

Start Hunting!