多项选择题

已知一个数组a的长度为n,求问下面这段代码的时间复杂度: 
An array of a, its length is known as n. Please answer the time complexity of the following code.(There are more than one answers.)
for (i=0,length=1;i   for (j = i+1;j     if(length       length=j-i+1;
}

A.
B.
C.
D.
题目列表

你可能感兴趣的试题

问答题

答案: -1
微信扫码免费搜题