Recent questions tagged linked-list

1 votes
1 answer
151
How D) could be answer here?I think for head->next=temp; will not work properly. Am I doing any mistake?
3 votes
2 answers
153
Which of the following is worst choice to sort a linked list?a)Merge Sortb) Quick Sortc) heap sortd) Insertion sort
1 votes
1 answer
156
–1 votes
0 answers
157
Insertion at beginning and end ....both require theta(n) ?
0 votes
2 answers
158
What is the time complexity to insert a new Node in a singly circular linked list at Starting ? (Number of nodes in list = N)A. O(1)B. O(N)
1 votes
0 answers
161
Let P be a single linked list.Let Q be a pointer to an intermediate node 'X' in the list.What is the worst case time complexity of best known algorithm to delete the node...
2 votes
1 answer
162
what should be the statement at A
0 votes
2 answers
163
3 votes
1 answer
165
In circular singly linked list, insertion of node requires modification of how many pointers?1 pointers2 pointers3 pointers 4 pointers
5 votes
1 answer
166
What would be the asymptotic time complexity to add a node at the end of singly linked list, if the pointer is initially pointing to the head of the list?O(n)O(1)θ(n2)θ...
0 votes
1 answer
168
i am getting 7 but ans given is 6.
1 votes
0 answers
169
1 votes
1 answer
172
3 votes
1 answer
174
0 votes
1 answer
177
What is best time complexity to search element in sorted doubly linkedlist??O(n) O(nlogn) O(log n) O(n2)
3 votes
1 answer
178
What is the time complexity to find Kth minimum element from a doubly linked list having 'n' elements?(A) O (n log K )(B) O (n log n )(C) O (K log n )(D) O ( n )