I\'ve some prob to add a new elment in my Circularly Linked Lists... When I try to add the first... if( empty() && pos ==1 )
find same node from two single linked lists. Can\'t use hash, Can not be O(n^2) complexity. Please开发者_JS百科 give some hints.
I need help updating the rear of a circular linked list if I move a set of nodes after the initial rear.
I\'m working in linked lists in Java, so I\'m trying to grasp the concept of a single linked list. head -> 12 -> 34 -> 56 -> null
This question already has answers here: Closed 11 years ago. Possible Duplicate: Best algorithm to test if a linked list has a cycle
I need to make a LinkedList in Java. I want that in every node, 8 data items stays stored, so when the next subject register that node stores that 8 data items.
I am looking for a library with a Red-black tree and Linked list implementation offering iterators which are not fail-fast. I would like to have the same functionality as I do in C++ using STL and tha
I have a generic linked list implemen开发者_如何学Gotation with a node struct containing a void* to data and a list struct that holds a reference to head. Now here is my problem a node in the linked l
What data structure can you use to store elements dynamically and access them efficiently?This is an interview question.Should I an开发者_运维百科swer std::list (I mean in C++)? or others?
My approach: An array of fixed-length (lets say 20) each element is pointer to the first node of a linked list.