Cody

# Problem 45425. The Tortoise and the Hare - 01

Solution 2198837

Submitted on 8 Apr 2020 by Binbin Qi
• Size: 17
• 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(rabbit_02(15),1))

ans = logical 1

2   Pass
assert(isequal(rabbit_02(45),1))

ans = logical 1

3   Pass
assert(isequal(rabbit_02(555),0))

ans = logical 0

4   Pass
assert(isequal(rabbit_02(25651),1))

ans = logical 1

5   Pass
assert(isequal(rabbit_02(-256514),0))

ans = logical 0

6   Pass
assert(isequal(rabbit_02(-2566245),1))

ans = logical 1

7   Pass
assert(isequal(rabbit_02(10011),1))

ans = logical 1

8   Pass
assert(isequal(rabbit_02(9191),0))

ans = logical 0

9   Pass
assert(isequal(rabbit_02(9191985078),1))

ans = logical 1

10   Pass
assert(isequal(rabbit_02(-111222333),0))

ans = logical 0

11   Pass
assert(isequal(rabbit_02(-111236070),1))

ans = logical 1

### Community Treasure Hunt

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

Start Hunting!