can u see why the code is unable to pass all the test cases , downloaded the test cases and it seemed to work fine on the editor
Problem in test cases
@pradyumn25jain test cases are okay. You are not taking care of situation when first digit is 9, then 9-9 will become 0, and as per the problem the answer should not have leading zero.
Just add one more line that if i==0 and s[i]==‘9’ do nothing.
If this resolves your doubt mark it as resolved.
i have included that condition in my code still cant submit
can you tell what seems to be wrong with the code
if((int)s[i]-48==9 and i==0){
cout<<9; //correction
continue; // you were not printing the first number when it is 9
}
If this resolves your doubt mark it as resolved.
ohhh i missed it thank u so much