Solution in C as a Beginner  (￣、￣)
 # Intuition  \n\n\n\n\n\n# Complexity\n- Time complexity: O(n)\n\n\n- Space complexity: O(1)\n\n\n# Code\n\nint findPoisonedDuration(int* timeSeries, int timeS
<!-- # 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: O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nint findPoisonedDuration(int* timeSeries, int timeSeriesSize, int duration) {\n    int time = duration;\n    for( int ind = timeSeriesSize - 2 ; ind >= 0  ; ind-- ) {\n        if( timeSeries[ind + 1] - timeSeries[ind] < duration) {\n            time += timeSeries[ind + 1] - timeSeries[ind];\n        }\n        else time += duration;\n    }\n    return time;\n}\n\n\n```
['C']