We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a62bcbf commit 0aaa8baCopy full SHA for 0aaa8ba
my-submissions/e266.py
@@ -0,0 +1,3 @@
1
+class Solution:
2
+ def canPermutePalindrome(self, s: str) -> bool:
3
+ return sum(x % 2 for x in Counter(s).values()) <= 1
0 commit comments