Recent questions tagged linked-list

2 votes
1 answer
211
Assume that you have a semaphore associated with each item on a doubly linked list. Using No other synchronization primitive, What is the fewest number of semaphore that ...
4 votes
2 answers
213
3 votes
2 answers
216
0 votes
1 answer
218
0 votes
1 answer
219
To insert a node at the end of double linked list we need to modify two pointers right??But answer given is one pointer.can someone clarify?
3 votes
2 answers
223
Given a linked list :1->2->3->4->5->6,make the following changes1->6->2->5->3->4What would be the most effiicient way to make this change?
1 votes
2 answers
224
The efficient data structure to insert/delete a number in a stored set of number isQueueLinked listDoubly linked listBinary tree
5 votes
2 answers
226
Can Someone explain either Tree or Stack method to trace out this recursion ?What is the output of this Program ?
5 votes
3 answers
227
2 votes
1 answer
228
The time required to search an element in a linked list of length n is$O(\log_2 n)$$O(n)$$O(1)$$O(n^2)$
5 votes
2 answers
233
The following steps in a linked listp = getnode() info(p) = 10 next (p) = list list = presult in which type of operation?Pop operation in stackRemoval of a nodeInserting ...
2 votes
2 answers
236
1 votes
1 answer
237
1 votes
0 answers
238
A program has just read the $12^{th}$ disk block using linked allocation. If it next want to read the $5^{th}$ disk block, then the number of disk blocks must the program...