Minimum Time Difference

Medium · Intervals · about 15 minutes

Asked at Google, Amazon, Microsoft, Meta.

Given a list of 24-hour clock times as "HH:MM" strings, return the minimum difference in minutes between any two of them. Remember the clock wraps around midnight.

Related guides