CodeNation OA 2020 Mathematical
Anonymous User
348

You are provided a random number generator that generates numbers from 1 to N uniformly.
You can use it once in every turn and record the number.
Find out the expected number of turns it would take to generate K distinct numbers.

Input : N,K

Comments (2)