Simple “maximum value in array” and complexity calculations

前端 未结 4 1098
眼角桃花
眼角桃花 2021-02-20 07:15

I\'m pretty new to this stuff and I need your help.

I should build an efficient simple algorithm which returns the maximum value in an array with size of n which contain

4条回答
  •  萌比男神i
    2021-02-20 07:39

    The worst and best cases are simple. The average case is more interesting. Look at the Wikipedia page for Geometric Distribution.

提交回复
热议问题