Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Difficulty: Easy Time Limit: 10 minutes
Check whether array A is a permutation.
A non-empty array A consisting of N integers is given. A permutation is a sequence containing each element from 1 to N once, and only once.