Cody

Problem 45365. Count the days

Solution 2475008

Submitted on 4 Jun 2020 by Karl Ezra Pilario
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(count_days_2([2010:2020],'Fri'),574))

2   Pass
assert(isequal(count_days_2([1910:2020],'Sat'),5792))

3   Pass
assert(isequal( count_days_2([1942:1947],'Sun'),313))

4   Pass
assert(isequal(count_days_2([1899:1912],'Wed'),730))

5   Pass
assert(isequal(count_days_2([1798:1902],'Sun'),5478))

6   Pass
assert(isequal(count_days_2(2012,'Mon'),53))

Suggested Problems

More from this Author149

Community Treasure Hunt

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

Start Hunting!