Minimum Time Difference - Practice Coding | SlaveCode
Problems
Scratchpad
Run
Submit
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
:
0
0
1
2
3
4
5
6
7
8
9
0
0
1
2
3
4
5
6
7
8
9
Toggle theme (Current: Custom)
Scratchpad
Run
Submit
Description
Hints
Solutions
539. Minimum Time Difference
Medium
30 Points
Array
Math
String
Sorting
Examples
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.length <= 2 * 104
timePoints[i] is in the format "HH:MM".
JAVASCRIPT
Code
Tests
Result
Description
Hints
Solutions
539. Minimum Time Difference
Medium
30 Points
Array
Math
String
Sorting
Examples
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.length <= 2 * 104
timePoints[i] is in the format "HH:MM".
JAVASCRIPT
Code
Tests
Result