[Python] Easy and Concise
Just calculate sum(min(duration, next attack time - this attack time))\n`````\ndef findPoisonedDuration(self, s, d):\n        return sum(min(d, b - a) for a, b 
Just calculate ````sum(min(duration, next attack time - this attack time))````\n`````\ndef findPoisonedDuration(self, s, d):\n        return sum(min(d, b - a) for a, b in zip(s, s[1:] + [10e7]))
[]