Cody

Problem 45365. Count the days

Solution 2163767

Submitted on 18 Mar 2020 by Mehmed Saad
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))

y = 574

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

y = 5792

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

y = 313

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

y = 730

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

y = 5478

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

y = 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!