Correct output on compilation but wrong answers

even wrong on test case 0?

hi @tusharbajaj200153_02bc6c0c5583c81d
refer this -->

1 Like

but how just putting a >= instead of == fixed the problem

Bcoz we have to check if count is equal or more than the nums value…

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.