Recent questions tagged linked-list

1 votes
0 answers
127
What is the time complexity of the best-known algorithm to reverse a doubly linked list?$A) O(n)$$B) O(logn)$$C) O(1)$$D) O(n^{2})$
1 votes
0 answers
128
0 votes
1 answer
131
In a linked list with $n$ nodes, the time taken to insert an element after an elementpointed by some pointer is:$(A) O(1)$$(B) O(logn)$$(C) O(n)$$(D) O(nlogn)$
1 votes
0 answers
132
If the head of a Linked List is pointing to $k$ th element, then how will you get the elements before $k$ th element?
0 votes
1 answer
134
can anyone explain in detail why and how is merge sort optimal for linked list?
0 votes
1 answer
135
WHAT IS THE TIME COMPLEXITY TO ENQUEUE AN ELEMENT IF THE QUEUE IS IMPLEMENTED AS A CIRCULAR QUEUE AND WE HAVE GOT ONLY ONE POINTER TO FRONT ELEMENT??
0 votes
1 answer
136
1 votes
1 answer
139
What kind of linked list is best to answer question like “What is the item at position n?”a) Singly linked listb) Doubly linked listc) Circular linked listd) Array im...
1 votes
1 answer
144
In a circular linked list last node points to the :$Head$$Tail$$First Node$
0 votes
1 answer
149
the sorage requirements of a linked stack with n elements will be what