can someone tell me what am i doing wrong
maybe if you can share the code
Array mirror inverse
you’re using wrong approach
you have to take n, the size of array a[]
and then n elements of array
- form another array b[] by using relation a[a[i]] = i
- compare ALL elements of b[] and a[]
- if they are equal then array is mirror inverse