Cody

# Problem 45365. Count the days

Solution 2183872

Submitted on 31 Mar 2020
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   Fail
assert(isequal(count_days_2([2010:2020],'Fri'),574))

Corr = 1×7 cell array {'Sun'} {'Mon'} {'Tue'} {'Thu'} {'Wed'} {'Fri'} {'Sat'} indi = 6 y = 654

Assertion failed.

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

Corr = 1×7 cell array {'Sun'} {'Mon'} {'Tue'} {'Thu'} {'Wed'} {'Fri'} {'Sat'} indi = 7 y = 5872

Assertion failed.

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

Corr = 1×7 cell array {'Sun'} {'Mon'} {'Tue'} {'Thu'} {'Wed'} {'Fri'} {'Sat'} indi = 1 y = 393

Assertion failed.

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

Corr = 1×7 cell array {'Sun'} {'Mon'} {'Tue'} {'Thu'} {'Wed'} {'Fri'} {'Sat'} indi = 5 y = 810

Assertion failed.

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

Corr = 1×7 cell array {'Sun'} {'Mon'} {'Tue'} {'Thu'} {'Wed'} {'Fri'} {'Sat'} indi = 1 y = 5558

Assertion failed.

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

Corr = 1×7 cell array {'Sun'} {'Mon'} {'Tue'} {'Thu'} {'Wed'} {'Fri'} {'Sat'} indi = 2 y = 132

Assertion failed.

### Community Treasure Hunt

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

Start Hunting!