linked-list
Binary data structure for fast searching
I\'m looking for a binary data structure (tree, list) that enables very fast searching. I\'ll only add/remove items at the beginning/end of the program, all at once. So it\'s gonna be fixed-sized, thu[详细]
2023-03-28 00:08 分类:问答How to find address on an element of linked list? [closed]
开发者_开发知识库 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current for[详细]
2023-03-27 16:52 分类:问答LinkedList - How to free the memory allocated using malloc
I have a very simple C code for constructing a Singly Linked list as below, in which开发者_Python百科 I allocate memory for each node dynamically using malloc. At the end of code, I want to free the m[详细]
2023-03-27 02:31 分类:问答Reversing a singly linked list when a block size is given
There is a singly connected linked list and a block size is given.For eg if my linked list is 1->2->3->4->5->6->7->8-NULL and my block size is 4 then reverse the first 4 elements[详细]
2023-03-26 22:10 分类:问答How to create an LinkedList<Object[]>[]?
What would be the synt开发者_运维百科ax to create a LinkedList<Object[]>[] type variable?[详细]
2023-03-26 10:27 分类:问答Copying a linked list- crashes the program
I have the following C code to copy a linked list(taken from Stanford CS Library files): struct Node* CopyList(struct Node* head)[详细]
2023-03-25 20:25 分类:问答C#: Counting number of elements between nodes in LinkedList
I want to calculate the total number of nodes between a start node and and end node in a System.Collections.Generic.LinkedList, similar to the STL algorithm std::count in C++ (except that I intend to[详细]
2023-03-25 14:23 分类:问答Garbage collection - orphaned LinkedList links
Suppose you have references A -> B -> C -> D. When you delete the reference to B from A, you\'re left with an orphaned chain of Objects B -> C -> D.[详细]
2023-03-25 08:19 分类:问答Implementing Chain of Responsibility with LinkedList
I\'m having a hard time wrapping my head around this, and I\'m hoping someone can help me. I have a Chain of Responsibility class, and I\'m wondering if I can (and would want to) implement it as a de[详细]
2023-03-24 22:02 分类:问答how to get the first element from a List - Beginner
I have a List <Hotel> object, and it has 1o elements in it. Now i need to print all the values stored in this List object.[详细]
2023-03-24 17:15 分类:问答