Cody

Solution 2194090

Submitted on 5 Apr 2020 by Binbin Qi
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
x =[1,1]; assert(isequal(knights_watch(x,3,2),0.0625))

2   Pass
x =[1,1]; assert(isequal(knights_watch(x,4,4),0.0176))

3   Pass
x =[6,4]; assert(isequal(knights_watch(x,6,9),0.012))

4   Pass
x =[6,4]; assert(isequal(knights_watch(x,8,25),0.0011))

5   Pass
x =[8,8]; assert(isequal(knights_watch(x,8,15),0.0042))

6   Pass
x =[8,8]; assert(isequal(knights_watch(x,16,15),0.4666))

7   Pass
x =[3,1]; assert(isequal(knights_watch(x,16,50),0.0037))

Suggested Problems

More from this Author148