Cody

Solution 2263237

Submitted on 8 May 2020 by Jean-Marie Sainthillier
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
n = 1900:2000; assert(isequal( leap_count(n),25))

ans = 25

2   Pass
n = 100:2000; assert(isequal( leap_count(n),461))

ans = 461

3   Pass
n = 1600:2000; assert(isequal( leap_count(n),98))

ans = 98

4   Pass
n = 3000; assert(isequal( leap_count(n),0))

ans = 0

5   Pass
n = 377:467; assert(isequal( leap_count(n),22))

ans = 22

Suggested Problems

More from this Author145