Generate non-overlapping time slots of a fixed duration within a given window.
Constraints
Example
>>> generate_time_slots('09:00', '10:00', 30)
['09:00-09:30', '09:30-10:00']
>>> generate_time_slots('09:00', '10:00', 45)
['09:00-09:45']
>>> generate_time_slots('09:00', '09:30', 30)
['09:00-09:30']
>>> generate_time_slots('09:00', '09:29', 30)
[]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints