英文算法面试题及答案.docx

英文算法面试题及答案

一、选择题(总分:20分)

1.WhatisthetimecomplexityofBinarySearch?

A.O(n)

B.O(n^2)

C.O(logn)

D.O(1)

答案:C

2.WhichdatastructurefollowstheLast-In-First-Out(LIFO)principle?

A.Queue

B.Stack

C.Array

D.Tree

答案:B

3.Whichtraversalmethodexploresatreelevelbylevel?

A.Depth-Firs

文档评论(0)

1亿VIP精品文档

相关文档