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)