Teemo Attacking
Solution (Beats 100 %-
class Solution:
def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:
ans = 0
last = 0
for val in timeSeries:
ans += min(val+duration - last, duration)
last = val+duration
return ans
Top comments (0)