100% t.c. easy short fast solution
\nPLEASE UPVOTE IF YOU LIKE\n\n```\n    public int findPoisonedDuration(int[] t, int d) {\n        \n        int sum = d;\n        int temp = t[0] + d - 1;\n\n 
```\nPLEASE UPVOTE IF YOU LIKE\n```\n```\n    public int findPoisonedDuration(int[] t, int d) {\n        \n        int sum = d;\n        int temp = t[0] + d - 1;\n\n        for (int i = 1; i < t.length; i++) {\n            if (t[i] > temp){\n                sum += d;\n            }\n            else {\n                sum += t[i] + d - 1 - temp;\n            }\n            temp = t[i] + d - 1;\n        }\n        return sum;\n    }
['Java']