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.

7
  • 1
    $\begingroup$ Actually the "Numbers cannot start with a 0" condition is redundant, because it would be never necessary to do so (the leading 0s can be dropped). $\endgroup$
    – trolley813
    Commented Jul 16, 2020 at 22:12
  • $\begingroup$ Yes good point! I will remove that condition. $\endgroup$ Commented Jul 16, 2020 at 22:55
  • 1
    $\begingroup$ Great question. I was expecting the answers to quickly hit the 10,000's+, clearly I haven't given it enough thought yet. Is there an invisible no computer tag here? Or may I answer with an algorithmic approach(assuming I can even work one out)? $\endgroup$
    – TCooper
    Commented Jul 16, 2020 at 22:57
  • $\begingroup$ You can use computers if you wish - the problem is still difficult. $\endgroup$ Commented Jul 17, 2020 at 2:12
  • $\begingroup$ Do you collect digits one by one moving in 1 of the 8 directions? Or you somehow move in all 8 directions at the same time? $\endgroup$
    – klm123
    Commented Jul 20, 2020 at 7:47