Day 18

# 18 of 100: Which Digit Is Rare?

If you wrote down all whole numbers from 1 to 1000...

$1, 2, 3, 4, ... , 999, 1000$

...which digit would appear the least?

There's a clever way to think of the numbers from 1 to 1000 that will make this problem easier.