Skip to content

Files

Latest commit

author
Shuo
Jul 10, 2021
62f1dec · Jul 10, 2021

History

History

minimum-time-difference

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 10, 2021
Nov 12, 2019
Nov 12, 2019

< Previous                  Next >

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

 

Example 1:

Input: timePoints = ["23:59","00:00"]
Output: 1

Example 2:

Input: timePoints = ["00:00","23:59","00:00"]
Output: 0

 

Constraints:

  • 2 <= timePoints <= 2 * 104
  • timePoints[i] is in the format "HH:MM".

Related Topics

[Array] [Math] [String] [Sorting]