<filename>Leetcode/1000-2000/1904. The Number of Full Rounds You Have Played/1904.py<gh_stars>0
class Solution:
  def numberOfRounds(self, startTime: str, finishTime: str) -> int:
    def getMinutes(s: str) -> int:
      return 60 * int(s[:2]) + int(s[3:])

    start = getMinutes(startTime)
    finish = getMinutes(finishTime)
    if start > finish:
      finish += 60 * 24

    return max(0, finish // 15 - (start + 14) // 15)

<filename>Leetcode/1000-2000/1904. The Number of Full Rounds You Have Played/1904.py<gh_stars>0
class Solution:
  def numberOfRounds(self, startTime: str, finishTime: str) -> int:
    def getMinutes(s: str) -> int:
      return 60 * int(s[:2]) + int(s[3:])

    start = getMinutes(startTime)
    finish = getMinutes(finishTime)
    if start > finish:
      finish += 60 * 24

    return max(0, finish // 15 - (start + 14) // 15)
