Problem Statement | |||||||||||||
| You will be given a list of tasks that need to be completed today. Each element of tasks will have the form (quotes for clarity) "HH:MM TASK" where HH is between 0 and 23 inclusive, MM is between 0 and 59 inclusive, and TASK is composed of letters ('A'-'Z', 'a'-'z'). Both HH and MM are 2-digit numbers. You will return a String formatted as follows (quotes for clarity): "FirstTask-LastTask". Here FirstTask is the earliest TASK in tasks and LastTask is the latest. | |||||||||||||
Definition | |||||||||||||
| |||||||||||||
Constraints | |||||||||||||
| - | tasks will contain between 2 and 50 elements inclusive. | ||||||||||||
| - | Each element of tasks will contain between 7 and 50 characters inclusive. | ||||||||||||
| - | Each element of tasks will be formatted in the way described in the problem statement. | ||||||||||||
| - | No two elements of tasks will have the same time. | ||||||||||||
Examples | |||||||||||||
| 0) | |||||||||||||
| |||||||||||||
| 1) | |||||||||||||
| |||||||||||||
| 2) | |||||||||||||
| |||||||||||||
| 3) | |||||||||||||
| |||||||||||||
| 4) | |||||||||||||
| |||||||||||||