Ho gya abba break ka importance in TLE casespehale kya unordered set and all kr rhi thi easy tha :D
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        \n        int c=0;\n\n        for (int i = 0; i < timeSeries.size()-1; i++) {\n            int t=timeSeries[i];\n            for(int k=t;k<t+duration;k++)\n            {\n                if(k<timeSeries[i+1])\n                   c++;\n                else\n                  break;\n               \n            }\n          \n        }\n\n        return c+duration;\n    }\n};\n```
['C++']