K Append problem, one testcase not passing

This is my implementation of the k Append problem, :

all my testcases, except one passes. I have referred the hint video, and my approach is similar. Please help me figure out what i can do to pass the last testcase.
Thanks for your assistance!

hello @ilovetocode https://ide.codingblocks.com/s/325043
corrected code therre was just ine condition which you were missing .
i hope i have cleared your doubt .
Happy Learning !!

1 Like

Hi Tushar!
Thanks for your help, the code is passing the testcases now.
Can you please tell me which line, exactly, did you change?
I cant find the condition you corrected.
Thanks again!

hello @ilovetocode see the line 38 i have commented the mistake there.
please mark this as resolved.
hit the like button if you feel your doubt is cleared .
Happy Learning !!

1 Like