You are viewing a single comment's thread. Return to all comments →
def gameOfThrones(s): a = list(filter(lambda x: x % 2 != 0 or x == 1, Counter(s).values())) if a == [] or len(a) == 1: return "YES" return "NO"
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 →
def gameOfThrones(s): a = list(filter(lambda x: x % 2 != 0 or x == 1, Counter(s).values())) if a == [] or len(a) == 1: return "YES" return "NO"