單項(xiàng)選擇題設(shè)一維數(shù)組中有n個(gè)數(shù)組元素,則讀取第i個(gè)數(shù)組元素的平均時(shí)間復(fù)雜度為()。

A.O(n)
B.O(nlog2n)
C.O(1)
D.O(n2)


您可能感興趣的試卷