Teemo Attacking | Simple Python3 Solution | Beats 100 %
\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        ans = 0\n        last = 0\n        for val in timeS
```\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        ans = 0\n        last = 0\n        for val in timeSeries:\n                ans += min(val+duration - last, duration)\n                last = val+duration\n        return ans\n```
[]