pub fn is_palindrome(number: i32) -> bool
Expand description

Check if a given input is a palindrome number

Arguments

  • x - input number

Examples

use leetcode_rust::problems::p000_0xx::p000_009::is_palindrome;

assert!(is_palindrome(12321) == true);
assert!(is_palindrome(-12321) == false);