Master Mathematics.

Quantitative Finance · Counting & Classical Probability · Problem 4

How many 9s from 1 to 1000?

How many times does the digit occur when counting to ? Note that the number , for example, would count as s.

Source: QuantQuestions.io