Cant understand why I am getting wrong answer in YVNUM

I am unable to understand why I am getting wrong answer in YVNUM

Link to my solution is here . Please help. I have verified my code for all possible cases I could think of.

1 Like

Hi, @palak89 – Your solution accommodates N of length 1-5 digits only. The problem statement allows the length of N having up to 10^5 digits. Good luck!

I thought the range of number would be upto 100000. Thank you so much :slight_smile: