tagged [linked-list]
How to read a singly linked list backwards?
How to read a singly linked list backwards? One method which I can think of is to reverse the list and then read it. But this involves changing the list which is bad. OR I can make a copy of the list ...
- Modified
- 12 May at 12:6
Yield Return In Java
Yield Return In Java I've created a linked list in java using generics, and now I want to be able to iterate over all the elements in the list. In C# I would use `yield return` inside the linked list ...
- Modified
- 28 Feb at 19:57
What is a practical, real world example of the Linked List?
What is a practical, real world example of the Linked List? I understand the definition of a Linked List, but how can it be represented and related to a common concept or item? For example, compositi...
- Modified
- 25 Sep at 01:8
How to detect a loop in a linked list?
How to detect a loop in a linked list? Say you have a linked list structure in Java. It's made up of Nodes: and each Node points to the next node, except for the last Node, which has null for next. Sa...
- Modified
- 5 May at 16:35
C linked list inserting node at the end
C linked list inserting node at the end I'm having some trouble with my insertion method for a linked list in C. It seems to only add at the beginning of the list. Any other insertion I make fail. And...
- Modified
- 28 Feb at 16:31
Reversing a linked list in Java, recursively
Reversing a linked list in Java, recursively I have been working on a Java project for a class for a while now. It is an implementation of a linked list (here called `AddressList`, containing simple n...
- Modified
- 16 Nov at 20:42
C: How to free nodes in the linked list?
C: How to free nodes in the linked list? How will I free the nodes allocated in another function? ``` struct node { int data; struct node* next; }; struct node* buildList() { struct node* head =...
- Modified
- 20 Jun at 21:4
Reporting Services: Overriding a default parameter with an expression in a linked report
Reporting Services: Overriding a default parameter with an expression in a linked report So I've got a "daily dashboard" report in SSRS 2005. It has a parameter, @pDate, which defaults to "=Now". I'd ...
- Modified
- 11 Feb at 04:33
Simple linked list in C++
Simple linked list in C++ I am about to create a linked that can insert and display until now: This is my initialisation function which only will be called for the first `Node`: To add the `Node`, and...
- Modified
- 2 Dec at 01:51
Why is a LinkedList Generally Slower than a List?
Why is a LinkedList Generally Slower than a List? I started using some LinkedList’s instead of Lists in some of my C# algorithms hoping to speed them up. However, I noticed that they just felt slower....
- Modified
- 12 May at 19:2
Splitting a linked list
Splitting a linked list Why are the split lists always empty in this program? (It is derived from the code on the [Wikipedia](http://en.wikipedia.org/wiki/Linked_List#Language_support) page on Linked ...
- Modified
- 15 Jun at 20:3