Security Function Inverses

  • + 1 comment

    I don't understand this at all. How should I compute which function it is from just the inputs? The functions could be everything from linear to polynomial to exponential...

    But as the problem said: The input is f(1), f(2) , f(3) ... f(n). The inverse of the the function would just be 1, 2, 3 ... n, shouldn't it?

    Why doesnt this work?

    Edit:

    After reading the problem again I notice this:

    ... f: X -> X
    

    So basically, f(x) = x. Is this why I just have to print out the input to pass the tests? (Besides, test case 4, don't undestand this as all)