couldnt figure out why
Test case 2 is failing
@tusharbajaj200153_02bc6c0c5583c81d
In your code line number 21, it should be
and += temp*((long long int) (pow(10,pos)+0.5));
As pow(10, pos) can’t fit in int type for pos>9.
1 Like
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.
1 Like
