Cody

# Problem 44708. Sherlock Holmes: The Spy Problem

Solution 2206970

Submitted on 12 Apr 2020
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   Fail
assert(isequal(Spy(0),0))

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test1 (line 1) assert(isequal(Spy(0),0))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test2 (line 1) assert(isequal(Spy(1),0))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test3 (line 1) assert(isequal(Spy(666),1994))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test4 (line 1) assert(isequal(Spy(3),5))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test5 (line 1) assert(isequal(Spy(1234),3698))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test6 (line 1) assert(isequal(Spy(59),173))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test7 (line 1) assert(isequal(Spy(17),47))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test8 (line 1) assert(isequal(Spy(101),299))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test9 (line 1) assert(isequal(Spy(555),1661))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test10 (line 1) assert(isequal(Spy(2),2))

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

Output argument "q" (and maybe others) not assigned during call to "Spy". Error in Test11 (line 1) assert(isequal(Spy(200),596))

### Community Treasure Hunt

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

Start Hunting!