wes d2a2ba9e15 first commit | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
README.md | %!s(int64=4) %!d(string=hai) anos | |
code.cpp | %!s(int64=4) %!d(string=hai) anos | |
unitTest.cpp | %!s(int64=4) %!d(string=hai) anos |
by Helen Yu tags: numbers, validation
Write a function that returns true if a number is a palindrome. Examples isPalindrome(838) ➞ true isPalindrome(4433) ➞ false isPalindrome(443344) ➞ true Notes N/A
Write a function that returns true
if a number is a palindrome.
isPalindrome(838) ➞ true
isPalindrome(4433) ➞ false
isPalindrome(443344) ➞ true
N/A