Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Handle negative
n
in is_palindrome(n)
and next_palindrome(n)
.
Negative numbers are not considered palindromic, therefore `is_palindrome(n)` will always return false when n < 0. Additionally, `next_palindrome(n)` will now return NaN when n < 0.
- Loading branch information