In this problem, the 2 test case has passed and other 3 has failed, what’s the problem in my code. But it has been successfully submitted in hackerrank.
Chewbacca and Number
the string length can go upto 19 characters and you declared array a of size 10.
this is the problem. increase the size of array to be atleast 19.ie. char arr[19];
thanks
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.