| 1 | class Solution: |
| 2 | def findPoisonedDuration(self, time: List[int], duration: int) -> int: |
| 3 | ans=0 |
| 4 | for i in range(1,len(time)): |
| 5 | if (time[i]-time[i-1])<duration: |
| 6 | ans+=time[i]-time[i-1] |
| 7 | else: |
| 8 | ans+=duration |
| 9 | ans+=duration |
| 10 | return ans |
nothing calls this directly
no outgoing calls
no test coverage detected