|Check if a given string is a palindrome....|General Coding Problems

fn is_palindrome(s: &str) -> bool

Easy

Check if a given string is a palindrome.

fn is_palindrome(s: &str) -> bool

Asked in

tcs

Examples

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

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