Top "Linked-list" questions

A linked list is a data structure where the list elements are not necessarily stored sequentially but rather each element contains a reference to the next (and optionally the previous) element in the list.

Finding the intersecting node from two intersecting linked lists

Suppose there are two singly linked lists both of which intersect at some point and become a single linked list. …

c algorithm linked-list
When do you know when to use a TreeSet or LinkedList?

What are the advantages of each structure? In my program I will be performing these steps and I was wondering …

java linked-list treeset
Idiomatic efficient Haskell append?

List and the cons operator (:) are very common in Haskell. Cons is our friend. But sometimes I want to add …

haskell performance linked-list append idiomatic
Test cases for a Singly Linked list

What are some good testcases for a Linked list problem in general? for example test cases for a function which …

testing linked-list white-box-testing black-box-testing
How does one add a LinkedList<T> to a LinkedList<T> in C#?

One would think the simple code llist1.Last.Next = llist2.First; llist2.First.Previous = llist1.Last; would work, however apparently …

c# .net list linked-list
Why do linked lists use pointers instead of storing nodes inside of nodes

I've worked with linked lists before extensively in Java, but I'm very new to C++. I was using this node …

c++ pointers linked-list
sorting a doubly linked list with merge sort

I have found this code in the internet and it was for arrays ,I want to change it for doubly …

java algorithm sorting linked-list mergesort
TStringList, Dynamic Array or Linked List in Delphi?

I have a choice. I have a number of already ordered strings that I need to store and access. It …

delphi data-structures linked-list tstringlist dynamic-arrays
Implementing a sliding window (java)

I am fairly new to java (and programming overall) and have received the task to implement a Sliding Window object …

java arrays linked-list sliding-window
The Iterator interface

I have a University assignement that requires me to implement an inner class which implements the Iterator interface. The iterator …

java iterator linked-list iterable