You are viewing a single comment's thread. Return to all comments →
import collections def gameOfThrones(s): d = collections.Counter(s) multipleOddVal = False for val in d.values(): if (val % 2 == 1): if (multipleOddVal): return "NO" break else: multipleOddVal = True else: return "YES" s = input() result = gameOfThrones(s) print(result)
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 →
for Python3 Platform