Palindrome Check
回文判断
Two lines. Normalize first, then compare to the reverse. [::-1] is the standard reverse-slice idiom.
Python · runnable
Normalizing — keep only letters
The build-from-chars idiom
回文判断
Two lines. Normalize first, then compare to the reverse. [::-1] is the standard reverse-slice idiom.