Search⌘ K

DIY: Valid Palindrome

Understand how to create a function that checks if a given string is a palindrome. This lesson helps you develop string manipulation skills and prepares you for common coding interview questions involving palindrome detection.

Problem statement

Write a function that takes a variable containing a string, and check whether it is a palindrome or not.

Input

...