Skip to content

Instantly share code, notes, and snippets.

@mikegraham
mikegraham / gist:1975172
Created March 4, 2012 22:36 — forked from PirosB3/gist:1975166
what would you tell me of this code?
#Function is called with a string
import collections
def isAnagramOfPalindrome(S):
# Check length if length even then all need to be two
# if not even there must be a -1
dic = collections.defaultdict(int)
for c in S:
dic[c] += 1