Cody

Problem 44708. Sherlock Holmes: The Spy Problem

Solution 1734980

Submitted on 24 Feb 2019 by Mauricio Jentys
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(Spy(0),0))

2   Pass
assert(isequal(Spy(1),0))

3   Pass
assert(isequal(Spy(666),1994))

4   Pass
assert(isequal(Spy(3),5))

5   Pass
assert(isequal(Spy(1234),3698))

6   Pass
assert(isequal(Spy(59),173))

7   Pass
assert(isequal(Spy(17),47))

8   Pass
assert(isequal(Spy(101),299))

9   Pass
assert(isequal(Spy(555),1661))

10   Pass
assert(isequal(Spy(2),2))

11   Pass
assert(isequal(Spy(200),596))

Suggested Problems

More from this Author18

Community Treasure Hunt

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

Start Hunting!