What does inverse if an array mean can you please redefine the question with a suitable example
Inverse of an Array
Hi @samyakjain1050_65748654e19948da,
The inverse of an array is an array where each element is defined by its position in the original array.
inverse[i] = position/index of i in original array
for example, if an array is: [0 2 4 1 3]
inverse[0] = 0 is at index 0
inverse[1] = 1 is at index 3
inverse[2] = 2 is at index 1
inverse[3] = 3 is at index 4
inverse[4] = 4 is at index 2
so, the final array is: [0 3 1 4 2]
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.
please help me out with this code i am not able to figure it out
yes please it would be a gr8 help