It fails for the test case
n = 10, k = 3
arr [ ] = {1, 2, 3, -3, -2, -1, 4, 1, 0, 1}
It fails for the test case
n = 10, k = 3
arr [ ] = {1, 2, 3, -3, -2, -1, 4, 1, 0, 1}
Hello @Koushik please share your code so that i can see what is the fault.
there will be case if sum is ‘k’ .
then youhvae to increse the counter variable.
Happy Learning!!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.