Medium · Strings
Minimum Time Difference
Given a list of at least two 24-hour times in "HH:MM" format, return the minimum difference in minutes between any two of them, measured the shorter way around the clock (23:59 and 00:00 are 1 minute apart).
Examples
Example 1
["23:59","00:00"]Output: 1 min
Example 2
["00:00","23:59","12:00","12:05"]Output: 1 min
Rebuild it in the studio
Read every interview problem free. Ten rooms need no account. A token opens a problem in full — Pro never counts.