|Write a program to check whether a string is a pal...|General Coding Problems

fn is_palindrome(s: &str) -> bool

Easy

Write a program to check whether a string is a palindrome.

fn is_palindrome(s: &str) -> bool

Asked in

cognizant

Examples

Example 1:
Input: racecar
Output: true
Example 2:
Input: hello
Output: false
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases