here is the link to the solution
here is the link to the problem
i am unable to pass 2 or three test cases,i have tried but can’t figure out the mistake. help me why i am failing some test cases.
here is the link to the solution
here is the link to the problem
i am unable to pass 2 or three test cases,i have tried but can’t figure out the mistake. help me why i am failing some test cases.
I have edited your code, now its working fine.
To help you better, can you explain what was your approach and thought process for this question.
and why were you checking with first if when you can simple put that in while loop().