Mirror inverse code

https://hack.codingblocks.com/contests/c/474/184

https://ide.codingblocks.com/#/s/13246

getting wrong ans for some one test case !!

why you did " ans = ans+ i*(pow(10,(n%10)-1)); "
Can you explain your answer please.

https://ide.codingblocks.com/#/s/13268

here,s the desciption…

Hey Nitesh ! actually ur code is not working for the give test case . I think ur logic seems wrong. It will be pretty easy to solve if you use string . Okay see this -->> https://ide.codingblocks.com/#/s/13663
You will understand …