Skip to content

Instantly share code, notes, and snippets.

@piyushbansal
Created June 9, 2013 19:40
Show Gist options
  • Save piyushbansal/5744895 to your computer and use it in GitHub Desktop.
Save piyushbansal/5744895 to your computer and use it in GitHub Desktop.
n=input()
for i in range(0,n):
string = raw_input()
print ("YES","NO")[(sorted(string[:len(string)/2])!=sorted(string[len(string)/2+(len(string)%2):]))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment