1 line Python solution


  • 3

    Solution:

        return sum(v % 2 for k, v in collections.Counter(s).iteritems()) < 2

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.