python||easy to understand||121ms
\t\t\t\tclass Solution:\n\t\t\t\t\tdef findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n\t\t\t\t\t\tans =0\n\t\t\t\t\t\ttime=0\n\t\t\t\
\t\t\t\tclass Solution:\n\t\t\t\t\tdef findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int:\n\t\t\t\t\t\tans =0\n\t\t\t\t\t\ttime=0\n\t\t\t\t\t\tfor i in timeSeries:\n\t\t\t\t\t\t\tans += i + duration - max(i, time)\n\t\t\t\t\t\t\ttime = i + duration\n\t\t\t\t\t\treturn ans
['Python']