Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Is it a Palindrome?

A word (or sentence) is a palindrome when reading it from right to left is the same as from left to right. For example: level is a palindrome.

The code uses recursion in order to iteratively compare the first and last element of the string, gradually reducing the string until the middle of it. Recursion is used when you do not know in advance how many iterations you need in order to get a solution.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.