Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If the digits are unique then there are no palindromes. Therefore there are 1098*7 = 5040 combinations.


The formatting ate your *'s but I understand. That's definitely the better way to reason the problem. In my defense it was late (after a trip to the bar) and my code is basically stream of consciousness.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: