You are given an array of length n.You can rerrange it in any order.Every time,p is random number between 1 and m.The leftmost element which is not larger than p will be canceled.Find the expected value of the time every element is canceled.
Can anyone help me solve this problem?
You are given an array of length n.You can rerrange it in any order.Every time,p is random number between 1 and m.The leftmost element which is not larger than p will be canceled.Find the expected value of the time every element is canceled.