Problem 2588. Find my secret number

Solution 2088136

Submitted on 10 Jan 2020 by Jonathan
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
a=[]; b=[1 2]; c=magic(4); d=a; e=5; assert(isequal(find_it(0),5))

2   Pass
a=4.1; b=magic(5); c=9; d=0; e=-5; assert(isequal(find_it(0),9))

3   Pass
a=100; b=[1 2]; c=magic(4); d=1.5; e=0; assert(isequal(find_it(0),100))

4   Pass
a=-100; b='secret'; c=eye(5); d=[]; e=1; assert(isequal(find_it(0),1))

Suggested Problems

More from this Author43

Community Treasure Hunt

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

Start Hunting!