Skip to content

Instantly share code, notes, and snippets.

@r-wheeler
Created October 30, 2015 17:20
Show Gist options
  • Save r-wheeler/53be8ff256913f83dfed to your computer and use it in GitHub Desktop.
Save r-wheeler/53be8ff256913f83dfed to your computer and use it in GitHub Desktop.
hackerrank gemstones
i = raw_input()
print len(set.intersection(*[set(raw_input()) for n in range(int(i))]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment