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.
Security Bijective Functions
Security Bijective Functions
Sort by
recency
|
81 Discussions
|
Please Login in order to post a comment
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
C++ solution with std::map like a table of frequencies :
def check(x,y): if x==len(set(y)): return "YES" else: return "NO" n=int(input()) m=list(map(int,input().split())) print(check(n,m))
Very poor explanation, and the absence of sample test cases is even more frustrating.
My solution in Python 3: