Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ I like this solution. I think there must be a way to reverse b for your if statement test to find the "reverse" outputs too... $\endgroup$
    – Ali
    Commented Oct 15, 2014 at 21:07
  • $\begingroup$ @Ali I don't think so - there's no easy way to find the most significant digits of those numbers. They must have millions of digits, and you can't drop any digits between multiplications. $\endgroup$
    – Otaia
    Commented Oct 15, 2014 at 21:49
  • $\begingroup$ We are still after the least significant digits, but they have to be the reverse of the numbers input, so instead of testing 999001 == 999001, it would test if 100999 == 999001 etc. $\endgroup$
    – Ali
    Commented Oct 15, 2014 at 22:16