Game of Thrones - I

  • + 0 comments

    My python3

    def gameOfThrones(s):
        # Write your code here
        odd_count = {i for i in dict(Counter(s)).items() if i[1]%2!=0}
        return 'YES' if len(odd_count)<2 else 'NO'