Probability, Statistics, Distributed Systems, Software Engineering, Interview Questions.
maximum number of keys in a slot is H? Let P(M, N, H) be the number of ways where any slot out of N slots has maximum H keys out of M keys. For the 1st slot we can choose 0, 1, 2, .. upto H keys and then recursively call the function with the remaining keys on N-1 slots. Then we can write a