Security Bijective Functions

  • + 1 comment

    But if the input would be:

    3
    1 2 4
    

    Then the answer should be "NO" because the image isn't {1..3} but your code would answer "YES"