87. Palindrome Word

Acceptance — 0 accepted 0 submissions

Easy
StringsTwo Pointers
No companies listed
Words like 'Malayalam', 'level' and 'Madam' read the same forwards and backwards. These are palindromes.

Given a word, check whether it is a palindrome, ignoring the difference between capital and small letters.

Input Format
A single word.

Output Format
Print Palindrome or Not Palindrome.

Constraints
• 1 ≤ length ≤ 1000
• The word contains only English letters.

Example 1

Input
Malayalam
Output
Palindrome

Explanation malayalam reads the same both ways.

Example 2

Input
coder
Output
Not Palindrome

Explanation coder reversed is redoc.

Example 3

Input
a
Output
Palindrome

Explanation A single letter is always a palindrome.

Example 4

Input
Noon
Output
Palindrome

Explanation noon is a palindrome.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
Palindrome
No results yet
Run your code to test it against the sample cases.
Problem List