Second Array Mirror Inverse Of First Array?

https://hack.codingblocks.com/contests/c/474/205
https://ide.codingblocks.com/#/s/24038

I think you misunderstood the question. Here we are talking about mathematical inverse of array1.

Hint: Condition for two arrays to inverse: if a[b[i]]=i for all i from 0 to n-1 then, we say that b is inverse of a.

CODE:
https://ide.codingblocks.com/#/s/24260

1 Like