Q: Write a function to check if a given string can be rearranged to form a palindrome.
π Examples:
-
"civic"β β already a palindrome -
"ivicc"β β can be rearranged into"civic" -
"hello"β β cannot form a palindrome
β‘ Concepts tested:
- String manipulation
- Frequency counting / HashMap usage
- Palindrome properties
π» Questions + Solutions:
π https://replit.com/@318097/RadiusAgent-R2-Palindrome#index.js
Top comments (0)