Cody

Solution 2250310

Submitted on 2 May 2020 by Yuan
  • Size: 41
  • This is the leading solution.
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_check_2('1306406152'),0))

2   Pass
assert(isequal( ISBN_check_2('0306406152'),1))

3   Pass
assert(isequal( ISBN_check_2('014298115X'),1))

4   Pass
assert(isequal( ISBN_check_2('014298115S'),0))

5   Pass
assert(isequal( ISBN_check_2('0X306406152'),0))

6   Pass
assert(isequal( ISBN_check_2('978-0-306-40615-7'),1))

7   Pass
assert(isequal( ISBN_check_2('978-0-306-40615-X'),0))

8   Pass
assert(isequal( ISBN_check_2('978-306-40615-7'),0))

9   Pass
assert(isequal( ISBN_check_2('0-9752298-0-X'),1))

10   Pass
assert(isequal( ISBN_check_2('0-97R2298-0-328'),0))

Suggested Problems

More from this Author148