You are viewing a single comment's thread. Return to all comments →
Right! Which is why I think the solutions posted in the discussion are wrong, and the solution I submitted checks the range as well (Python 2):
print "YES" if range(1,input()+1)==sorted(list(set(map(int,raw_input().split())))) else "NO"
Security Bijective Functions
You are viewing a single comment's thread. Return to all comments →
Right! Which is why I think the solutions posted in the discussion are wrong, and the solution I submitted checks the range as well (Python 2):