Link : LOOPEXP
Category : Maths, Expectation
Hint : Consider the smallest element of the array. Consider the two cases of it being the first element of the array and not being the first element of the array.
Code:
Category : Maths, Expectation
Hint : Consider the smallest element of the array. Consider the two cases of it being the first element of the array and not being the first element of the array.
Code: