Pseudocode Compiler
Practice

Palindrome Check

MEDIUMString Processing

Read a single word (no spaces). Output Yes if it is a palindrome, No otherwise. Ignore case.

A palindrome reads the same forwards and backwards (e.g. racecar, madam).

Input: A single word. Output: Yes or No.

Example:

Input:  racecar
Output: Yes
Premium is coming soon. All grading features are currently unlocked.

Sample Test Cases

Test 1: Classic palindrome
Inputs: racecar
Expected: Yes
Test 2: Not a palindrome
Inputs: hello
Expected: No
Test 3: Another palindrome
Inputs: madam
Expected: Yes
Press Ctrl+Enter to run your code
or Ctrl+Shift+Enter to grade