Cody

Solution 2245862

Submitted on 30 Apr 2020 by Asif Newaz
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
assert(isequal(ISBN_01('030640615'),2))

y = 0 27 0 42 24 0 24 3 10

2   Pass
assert(isequal(ISBN_01('0306406152'),'invalid'))

3   Pass
assert(isequal(ISBN_01('014298118'),4))

y = 0 9 32 14 54 40 4 3 16

4   Pass
assert(isequal(ISBN_01('014298115'),'X'))

y = 0 9 32 14 54 40 4 3 10

5   Pass
assert(isequal(ISBN_01('85-359-0277'),5))

y = 80 45 24 35 54 0 8 21 14

6   Pass
assert(isequal(ISBN_01('978-85-359-0277'),'invalid'))

Suggested Problems

More from this Author145