← Home
write a go solution for Description:
Given a string s, output YES if it is a palindrome and NO otherwise.
Input Format:
A single string without spaces.
Output Format:
Either YES or NO followed by a newline.
. Output only the code with no comments, explanation, or additional text.