DEV Community

Mehul Lakhanpal
Mehul Lakhanpal

Posted on

πŸŒ€ Radius Agent – Round 2 (JavaScript)

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)