Answers for "python recursion return palindrome number"

1

palindrome rearranging python

import collections
def palindromeRearranging(inputString):
  cnt = collections.Counter()
  odds = 0
  for i in range(len(inputString)):
    cnt[inputString[i]] += 1
  for i in cnt:
    if cnt[i]%2 == 1:
      odds += 1
  return odds <= 1
Posted by: Guest on March-04-2021

Code answers related to "python recursion return palindrome number"

Python Answers by Framework

Browse Popular Code Answers by Language