[Python] play with Numbers
The main idea behind this solution was :\n1.Convert times to numbers\n2.Find the first time where a play can start\n3.If the end time is less than start, go on 
The main idea behind this solution was :\n1.Convert times to numbers\n2.Find the first time where a play can start\n3.If the end time is less than start, go on untill 2400 and make start-index to 0\n3.Go on untill we reach the end time\n\nThe main point to be remembered here is 10:60 is treated same as 11:00.\n~~~\nclass Solution:\n    def numberOfRounds(self, s: str, f: str) -> int:\n        si=int(s[:2]+s[3:]) #start integer\n        ei=int(f[:2]+f[3:]) #end integer\n        while((si%100)%15!=0):si+=1 #if last two digits are divisible by 15 then it\'s start time\n        count=0\n        if(ei<si): #end integer is less than start integer\n            while(si<=2360): #if end time is less than start time\n\t\t#if we reached a perfect hour we need to go to next hour + 15\n\t\t#that is if we are at 10:60 and if we add 40 we go to 11:00 but 11:00 is same as 10:60, \n\t\t#so increment by another 15 = 40+15=55\n                if((si%100)==60):si+=55 \n                else:si+=15 #increment time by 15 minutes indicating completion of a time slot\n                count+=1\n            count-=1 #As we moved one step ahead(<=2360) decrementing the count\n            si=0 #setting start time as 0\n        while(si<=ei):\n            count+=1\n            if((si%100)==60):si+=55 #same above logic applies here\n            else:si+=15\n        count-=1\n        return count\n~~~
[]