Security Function Inverses

  • + 2 comments

    In this problem you say that the second line of the input is a list of integers which is the output of the functions f(1), f(2), f(3), ...

    "The second line contains n space separated integers, the values of f(1), f(2), f(3), ..., f(n) respectively."

    If this is the case, given an input list of 3 2 1 5 4 would appear to result in the following: f(1) = 3, f(2) = 2, f(3) = 1, f(4) = 5, f(5) = 4.

    Why would the inverse then not always be the following for all input lists?

    1 2 3 4 5