Closed ryanplusplus closed 1 month ago
We can save a couple of seconds using:
- if n <= value and is_palindrome(n) then + if n > value then + break + end + + if is_palindrome(n) then
- if n >= value and is_palindrome(n) then + if n < value then + break + end + + if is_palindrome(n) then
Great catch, thanks!
We can save a couple of seconds using: