Problem 42638. Number of active Cody players by date

Solution 2209938

Submitted on 14 Apr 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(numcodyplayers('17 Aug 1939'),0))

Assertion failed.

2   Fail
assert(isequal(numcodyplayers('7 Dec 1984'),0))

Assertion failed.

3   Fail
assert(isequal(numcodyplayers('1 Jan 2012'),0))

Assertion failed.

4   Fail
assert(isequal(numcodyplayers('19 Jan 2012'),3))

Assertion failed.

5   Pass
assert(isequal(numcodyplayers('26 Jan 2012'),260))

6   Fail
assert(isequal(numcodyplayers('14 Feb 2012'),852))

Assertion failed.

7   Fail
assert(isequal(numcodyplayers('19 Feb 2012'),910))

Assertion failed.

Suggested Problems

More from this Author44

Community Treasure Hunt

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

Start Hunting!