Doubt in my code

Hello, I was doing chewbacca and number problem. I am trying to store that number in a array. Now there is some problem in my code. Could you please help me in finding the problem. Here is my code :

hello @yashsharma4304

check now->

1 Like

Ok I got confused in 10^18 and 18 digits and therefore I give 10^18 size array :sweat_smile:. Thank you for solving the issue. :slightly_smiling_face:

there was one more issue,
after while loop value of x will become 0
so u need to store x in some variable and then use that variable.
check my shared code again(i updated the link)

Yeah… I have already checked that :slightly_smiling_face: