You are viewing a single comment's thread. Return to all comments →
Python 3
from collections import Counter def gameOfThrones(s): # Write your code here counts_s = Counter(s) vals = counts_s.values() uneven_count = 0 for ii in vals: if ii % 2 != 0: uneven_count +=1 if uneven_count > 1: return "NO" else: 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 →
Python 3