Dsa
Strings
Easy
Palindrome Query Filter
Given a list of words, write a program that filters and returns only those words that are palindromes. A palindrome is a word that reads the same forwards and backwards, ignoring case. The output should be a space-separated list of palindromic words. If there are no palindromic words, return a blank line.
Example Input:
Madam
Racecar
hello
world
Example Output:
Madam Racecar
Key concepts
stringspalindromesfiltering
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now