We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
quite hard to understand the question -
only really became clear after stumbliing across the right answer - very easy once you get past the wordingof the explanation
# Enter your code here. Read input from STDIN. Print output to STDOUTn=int(input().strip())arr=[int(i)foriininput().strip().split()]ans="YES"foriinrange(1,n+1):ifinotinarr:ans="NO"print(ans)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Security Bijective Functions
You are viewing a single comment's thread. Return to all comments →
quite hard to understand the question - only really became clear after stumbliing across the right answer - very easy once you get past the wordingof the explanation