Quarantine Days - MATLAB Cody - MATLAB Central

Problem 45449. Quarantine Days

Difficulty:Rate

In these quarantine days, a list of what Max may do on a typical day is given in a table with the starting hour to ending hour.

 Task       Start         End
Sleep         0            6
Walk          6            7
Breakfast     8            9
Movie         10           16
Study         15           21
Dinner        22           23

Now Max wants to perform the maximum amount of tasks in a single day. How should he make his routine?

For this problem -- just return the number of tasks.

Solution Stats

41.94% Correct | 58.06% Incorrect
Last Solution submitted on Jul 21, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers19

Suggested Problems

More from this Author174

Problem Tags

Community Treasure Hunt

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

Start Hunting!