[Python3] 1 line
Same logic as Merge Intervals\n\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        return duration+sum(
* Same logic as Merge Intervals\n```\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        return duration+sum(min(duration,timeSeries[i+1]-timeSeries[i]) for i in range(len(timeSeries)-1))\n```\n* Readable version:\n```\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        res=0\n        for i in range(len(timeSeries)-1):\n            res+=min(duration,timeSeries[i+1]-timeSeries[i])\n        return res+duration\n```\n* Even more simple:\n```\nclass Solution:\n    def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n        res=0\n        for i in range(len(timeSeries)-1):\n            if timeSeries[i+1]<timeSeries[i]+duration: \n                res+=(timeSeries[i+1]-timeSeries[i])\n            else:\n                res+=duration\n        return res+duration\n```
[]