Introduction To Data Structures - Study Mode
[#41] Which data structure is used for breadth-first search (BFS)?
Correct Answer
(B) Queue
[#42] Which data structure is used for depth-first search (DFS)?
Correct Answer
(A) Stack
[#43] Consider yourself to be in a planet where the computational power of chips to be slow. You have an array of size 10.You want to perform enqueue some element into this array. But you can perform only push and pop operations .Push and pop operation both take 1 sec respectively. The total time required to perform enQueue operation is?
Correct Answer
(D) 43
[#44] What would be the asymptotic time complexity to insert an element at the second position in the linked list?
Correct Answer
(A) O(1)
[#45] What is the time complexity of searching for an element in a circular linked list?
Correct Answer
(A) O(n)