Continous subarray sum Leetcode

Can you please help in fixing my code it is passing 84/97 Test cases plz help to fix it

Problem link>>

my code>>>

you have to make sure that size of subarray should be at least 2
as mention in question

No it is working fine for cases like [5,6,2] and k=6 you can try it out here according to u my code will return TRUE bcz {6} is subarray but it return FALSE which is correct . Can u help me to correct it

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.