• edited by
1,687 views
1 1 vote

Which of the following data structures will be the most efficient for inserting a number into a sorted list of numbers?

  1. Queue
  2. Stack
  3. Linked list
  4. Array

2 Answers

0 0 votes
queue  & stack are of no use in sorted list as they have only one policy fifo and lifo.    linked list will take more time than array in inserting(as in sorted order we can apply binary search in array ) so ans is D array
0 0 votes
Ans : Array.

If the answer is linked ist, then option should be doubly linked list.
Position:
Show:

Related questions

–4 –4 votes
2 answers 2 answers
1.7k
1.7k views
Souvik33 asked Oct 27, 2022
1,730 views
*MSQ*The following figure depicts a a. A tree and only treeb. A tree with 3 nodesc. A graph (Since every tree is a graph)d. A graph and only graph
10 10 votes
1 1 answer
445
445 views
10 10 votes
1 1 answer
287
287 views
GO Classes asked Jul 28
287 views
A binary tree has:$1000$ nodes in the left subtree $100$ nodes in the right subtreeHow many nodes are processed before the root in preorder, inorder, and postorder traver...
6 6 votes
1 1 answer
252
252 views