C++ easy solution, simple TC: O( n )
\nclass Solution {\npublic:\n    int findPoisonedDuration(vector<int>& timeSeries, int duration) {\n        int count=0;\n        for(int z=1;z<timeSeries.size(
```\nclass Solution {\npublic:\n    int findPoisonedDuration(vector<int>& timeSeries, int duration) {\n        int count=0;\n        for(int z=1;z<timeSeries.size();z++){\n            if(timeSeries[z-1]+duration<=timeSeries[z]){\n                count+=duration;\n            }\n            else{\n                count+=timeSeries[z]-timeSeries[z-1];\n            }\n        }\n        count+=duration;\n        return count;\n           \n    }\n};\n```
['C']