This solution is outdated. To rescore this solution, sign in.
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 |
assert(isequal(diff_digits(4321,6789),1210))
|
5 | Pass |
assert(isequal(diff_digits(1988,2012),0))
|
Project Euler: Problem 3, Largest prime factor
379 Solvers
Given a window, how many subsets of a vector sum positive
742 Solvers
413 Solvers
530 Solvers
Number of digits in an integer
336 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!