Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on 3 years of computing... the palindrome quest. Parent comment
Then just keep track if at least one carry was generated instead of checking if the resulting number was a palindrome separately. Should be very fast.
There are no comments on this comment yet.
Then just keep track if at least one carry was generated instead of checking if the resulting number was a palindrome separately. Should be very fast.