My code can't handle the numbers ending with zeros, what should i modify
hi @aakshatmalhotra100
just replace int with long long int bcoz constraints are large… it will pass all test cases… rest ur logic is absolutely correct…
corrected code --> https://ide.codingblocks.com/s/642332
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.
plz see this code https://github.com/aakshatm/coding-blocks/blob/master/InvertingDigitstoMinimumNo.cpp one of the test case is not passing
hi @aakshatmalhotra100

here when u are passing parameter here also change it to long long int… ur code will work fine and pass all test cases…
corrected code --> https://ide.codingblocks.com/s/642688