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.length <= 2 * 104`
*   `timePoints[i]` is in the format **"HH:MM "**.


def findMinDifference(timePoints):
    timePoints.sort()
    min_difference = float('inf')

    for i in range(len(timePoints)):
        h1, m1 = map(int, timePoints[i].split(':'))
        h2, m2 = map(int, timePoints[(i+1) % len(timePoints)].split(':'))
        cur_difference = abs((h1 * 60 + m1) - (h2 * 60 + m2))
        min_difference = min(min_difference, 1440 - cur_difference if cur_difference > 720 else cur_difference)

    return min_difference
