Search posts, tags, users, and pages
Tapan Rachchh
Using simulation class Solution: def passThePillow(self, n: int, time: int) -> int: person = 1 mod = 1 while time > 0: time -= 1 person += mod if person == n: mod = -1 ...
No responses yet.