Created
October 28, 2013 05:14
-
-
Save codyhan94/7191729 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lst1 = list(str1) | |
lst2 = list(str2) | |
for char in lst1: | |
if char in lst2: | |
count += 1 | |
lst2.remove(char) | |
return count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment