problem link-https://hack.codingblocks.com/contests/c/509/62
my code-https://ide.codingblocks.com/#/s/28417
test case 1 is failing.
Chewbacca and numbers
Replace
if(A[i]==9) with if(A[i]==‘9’)
Because you are comparing characters and it will go fine
1 Like