Inverse of a number

I am unabke to solve this problem , can you help me to solve this .

hi @deepshreyamishra301_1918130c8477386b

Inverse is basically inverting the places of any number with its value.

For e.g…,
Before Inverse

  • Places --> 5 4 3 2 1
  • Value —> 3 2 1 4 5

After Inverse

  • Places --> 5 4 3 2 1
  • Value —> 1 2 5 4 3

eg : 32145 answer is 12543
here u have got the place of numbers in input
for 1 is 5
for 2 is 4
for 3 is 1
for 4 is 2
and for 5 is 3
just place them in this order 12543

u can check the core for the same https://ide.codingblocks.com/s/657727

hope this helps :slight_smile:

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.

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.