https://ide.codingblocks.com/s/661546 what is the test case 2 or what are the cases am i missing
Cant clear test case 2
hi @vmayaan,
Logic: Inverse is Simply swapping the value of the array with the value at that index.
- Create a new Array say narr and original array is arr.
- now at the arr[i]th index of narr save the ith value.(previously i is the index and arr[i] is the value bt now arr[i] is the index and i is the value.)
- print new array.
corrected code :
refer here https://ide.codingblocks.com/s/661572
ty bro, understood …
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.