Skip to content

Commit 0aaa8ba

Browse files
committed
Do weekly prem
1 parent a62bcbf commit 0aaa8ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

my-submissions/e266.py

+3
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)