|Write a program to check if a given string is a pa...|General Coding Problems

fn is_palindrome(s: &str) -> bool

Easy

Write a program to check if a given string is a palindrome.

fn is_palindrome(s: &str) -> bool

Asked in

wipro

Examples

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

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