数据结构与算法(周测1)

1.In a singly linked list of N nodes, the time complexities for query and insertion are O(1) and O(N), respectively.

     T      F

2.If N numbers are stored in a singly linked list in increasing order, then the average time complexity for binary search is O(logN).

     T      F

3.If keys are pushed onto a stack in the order abcde, then it's impossible to obtain the output sequence cedab.

     T      F

猜你喜欢

转载自www.cnblogs.com/nonlinearthink/p/11735810.html