Inverse Of An Array
easy
1. You are given a number n, representing the size of array a. 2. You are given n numbers, representing elements of array a. 3. You are required to calculate the inverse of array a. For definition and constraints check this link https://www.pepcoding.com/resources/online-java-foundation/getting-started/inverse-of-a-number/ojquestion The only difference is the range of values is from 0 to n - 1, instead of 1 to n.
Constraints
0 <= n < 10^7 For more constraints check this https://www.pepcoding.com/resources/online-java-foundation/getting-started/inverse-of-a-number/ojquestion The only difference is the range of values is from 0 to n - 1, instead of 1 to n
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
5
4
0
2
3
1
Sample Output
1
4
2
3
0
Question Video