Tap here to switch tabs
Problem
Submissions

Problem: Minimum Time Difference

Minimum Time Difference gives you a list of 24-hour clock time points and asks for the smallest difference in minutes between any two points, including times across midnight.

Statement

Given a list of 2424-hour clock time points in "HH:MM" format, return the minimum difference in minutes between any two time points in timePoints.

Constraints:

  • 2≤2 \leq timePoints.length ≤2×104\leq 2 \times 10^4

  • timePoints[i] is in the format "HH:MM"

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Minimum Time Difference

Minimum Time Difference gives you a list of 24-hour clock time points and asks for the smallest difference in minutes between any two points, including times across midnight.

Statement

Given a list of 2424-hour clock time points in "HH:MM" format, return the minimum difference in minutes between any two time points in timePoints.

Constraints:

  • 2≤2 \leq timePoints.length ≤2×104\leq 2 \times 10^4

  • timePoints[i] is in the format "HH:MM"