You are viewing a single comment's thread. Return to all comments →
from collections import Counter def gameOfThrones(s): c = dict(Counter(s)) odd = 0 for i in c.values(): if i % 2 != 0: odd+=1 if odd > 1: return "NO" return "YES"
Seems like cookies are disabled on this browser, please enable them to open this website
Game of Thrones - I
You are viewing a single comment's thread. Return to all comments →