Skip to content

stringseasy

Palindrome Check

75 points · 0 solved

The first line is T. Each of the next T lines is a phrase. Ignoring everything except ASCII letters and digits, and ignoring case, print YES if it reads the same both ways, otherwise NO. A phrase with no letters or digits counts as YES.

3
A man, a plan, a canal: Panama
hello
Racecar
YES
NO
YES
Learn the technique/learn/regex-text-processing

main.py