算法题库及答案 英文.doc

算法题库及答案英文

一、单项选择题(总共10题,每题2分)

1.Whatisthetimecomplexityoflinearsearchintheworstcase?

A.O(1)

B.O(logn)

C.O(n)

D.O(n^2)

Answer:C

2.Whichofthefollowingsortingalgorithmshasthebestaverage-casetimecomplexity?

A.BubbleSort

B.InsertionSort

C.Quic

文档评论(0)

1亿VIP精品文档

相关文档