Hacker News new | ask | show | jobs
by HoLyVieR 4910 days ago
Here's an other solution. If you simply calculate the first digit and length for N=2, you will see that 2233445566 has a length of 19 and starts with 4, 7788990011 has a length of 20 and starts with 4 and 9988776655 has a length of 20 and starts with 8. If the first number had a length of 20 it could match, but since it has a length of 19 no mater the rest of the digits it can't be equal.