Cody

# Problem 1162. Happy 2013...

Solution 1114165

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

Error: File: solution.m Line: 2 Column: 24 The expression to the left of the equals sign is not a valid target for an assignment.

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

Error: File: solution.m Line: 2 Column: 24 The expression to the left of the equals sign is not a valid target for an assignment.

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

Error: File: solution.m Line: 2 Column: 24 The expression to the left of the equals sign is not a valid target for an assignment.

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

Error: File: solution.m Line: 2 Column: 24 The expression to the left of the equals sign is not a valid target for an assignment.

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

Error: File: solution.m Line: 2 Column: 24 The expression to the left of the equals sign is not a valid target for an assignment.