Probability · Counting · Medium
A four-digit code
A four-digit code is chosen uniformly at random from the 10,000 codes 0000 to 9999. What is the probability that each digit of the code is strictly greater than the digit before it, as in 0259?
a fraction, an expression or a decimal to two significant figures · 5/8 · ln 2 · pi · inf
Answer and solution
Answer
21/1000 ≈ 0.021
Solution
A rising code is fixed by its set of four different digits.
Sets of four digits out of ten: C(10,4) = 210, each giving one rising code. The probability is 210/10,000 = 0.021.
Counting comes up in 6 firms' roundsJane Street · Jump Trading · Tower Research · +3
These 8 rounds ask this kind of problem live, with follow-ups. Every round on every track is in Premium.