You are viewing a single comment's thread. Return to all comments →
def gameOfThrones(s): for ch in s: if s.count(ch) > 1: s = s.replace(ch, "", 2) if len(s) <= 1: return "YES" else: 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 →