1 Count Problem

My test case 0 is failing.

hello @aastha2711
check ur code for this test case->

1 0
0

So should i add this condition: if k==0?

yeah handle such cases separately

One of the test cases is still failing. Please check the code

u havent handled k=0 case correclty.

i have made the changes .
check here->

Thankyou so much for the help