From 6dca2e48c6b5a8cb1b9fa4d27512dc46945c9695 Mon Sep 17 00:00:00 2001 From: Dhruv Goyal Date: Wed, 30 Sep 2020 18:12:07 +0530 Subject: [PATCH] Added a new Problem to help others It is an accepted solution try to help others. --- Teemo Attacking | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Teemo Attacking diff --git a/Teemo Attacking b/Teemo Attacking new file mode 100644 index 00000000..3844edd5 --- /dev/null +++ b/Teemo Attacking @@ -0,0 +1,20 @@ +class Solution { + public int findPoisonedDuration(int[] t, int d) { + int n = t.length; + if(n == 0) + return 0; + int total = d; + int last = t[0] + d; + for(int i = 1;i