C++ intuitive approach O(N) 99.99% faster
\nclass Solution {\npublic:\n    int findPoisonedDuration(vector<int>& nums, int duration) {\n        int ans=0;\n        for(int i=0;i<nums.size();i++)\n      
```\nclass Solution {\npublic:\n    int findPoisonedDuration(vector<int>& nums, int duration) {\n        int ans=0;\n        for(int i=0;i<nums.size();i++)\n        {\n            if(i==nums.size()-1){\n                ans+=duration;\n                break;\n            }\n            if(duration+nums[i]<=nums[i+1]){\n                ans+=duration;\n            }\n            else //clash nums[i]+duration>nums[i+1]\n            {\n                ans+=nums[i+1]-nums[i];\n            }\n        }\n        return ans;\n    }\n};\n```
['C']