@LHearen It is a FREAKING HARD problem.
It is called COUPON COLLECT PROBLEM WITH DIFFERENT PROBABILITIES.
Check this article if you want:
No one has replied
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.