teeemooooooooo ayyyoooo !!! :D finally ho gya
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    int findPoisonedDuration(vector<int>& timeSeries, int duration) {\n        int c=0;\n        for(int i=0;i<timeSeries.size()-1;i++)\n        {\n            if(timeSeries[i+1]>timeSeries[i]+duration-1)\n            {\n                 c+=duration;\n            }\n            else\n            {\n                c+=timeSeries[i+1]-timeSeries[i];\n            }\n  \n        }\n\n        c+=duration;\n\n\n        return c;\n    }\n};\n```
['C++']