Python: Brute-force: Constant Time and Space.
Idea: Split the time into hours and minutes.\n\nif start hour == end hour, and start min < end min, this simply means start time is less than end time.\nso, get
Idea: Split the time into hours and minutes.\n\nif start hour == end hour, and start min < end min, this simply means start time is less than end time.\nso, get the difference between the  number of games he/she can play witin that time. \nNote: if start min = 1 and end min = 46, then our games played will be only 2 from 15-30 min and 30 - 45 min.\nSo, **do not do (end min - start min)//15** because it will give you (46-1)//15 = 3 which is not true.\n\nSo, just take care of such things and it can be solved easily.\n\nI guess the code is self explanatory. Kindly go through it. Incase of any doubts, feel free to comment down below.\n\nHave a great day!\n\n```\nclass Solution:\n    def numberOfRounds(self, startTime: str, finishTime: str) -> int:\n        sh, sm = startTime.split(":")\n        eh, em = finishTime.split(":")\n\t\t\n        # sh - hour part of the start time\n\t\t# sm - minute part of the start time\n\t\t# eh - hour part of the finish time\n\t\t# em = minute part of the finish time\n        sh, sm, eh, em = int(sh), int(sm), int(eh), int(em)\n        \n        if sh == eh:\n            if sm <= em:\n                return em//15 - (sm//15 + 1)\n            else:\n                val = 0\n                sm = 60 - sm\n                val += sm//15\n                val += em//15\n                return 23*4 + val \n        else:\n            if eh < sh:\n                eh += 24\n            val = 0\n            sm = 60 - sm\n            val += sm//15\n            val += em//15\n            sh += 1\n            return (eh-sh)*4 + val\n```\nTime = Space = O(1)
['Python']