Hacker News new | ask | show | jobs
by justinsaccount 200 days ago
Odd that it came up with

  pattern_start = 1 if half_digits == 1 else 10 ** (half_digits - 1)
when

  10 ** (half_digits - 1)
is fine.