Skip to main content

Questions tagged [linked-list]

A linked list is a data structure in which the elements contain references to the next (and optionally the previous) element.

2 votes
1 answer
46 views

I have written a custom data structure called LinkedChain to manage hierarchical data structures. While it's similar to a standard Doubly Linked List, it is ...
D. Chiabouri's user avatar
8 votes
3 answers
823 views

The task is taken from LeetCode. I would appreciate an assessment of whether my coding style follows good practices, and if there are any habits or patterns you would find concerning when working ...
FluidMechanics Potential Flows's user avatar
5 votes
4 answers
799 views

This is a reservations app with linked lists for insertion and BST for search. It uses CSV files for storage, recursion for printing and handles memory allocation for variable growth. I'm looking for ...
Attila Vajda's user avatar
11 votes
4 answers
1k views

I'm building this code for my students, so I'd like any comments about modern C++ and whether it is pedagogic. And of course if you find any logic error. Basic exercise is to count word frequency in a ...
Yann TM's user avatar
  • 243
1 vote
0 answers
35 views

Intro This post is the continuation of IndexedLinkedList.java - A fast list data structure for large data, Take III/V (private API). Code ...
coderodde's user avatar
  • 33.1k
1 vote
0 answers
34 views

Intro This post is the continuation of IndexedLinkedList.java - A fast list data structure for large data, Take II/V (package private API). It presents the private methods only. Code ...
coderodde's user avatar
  • 33.1k
1 vote
0 answers
36 views

Intro This post is the continuation of the IndexedLinkedList series. It presents the package private API: Code ...
coderodde's user avatar
  • 33.1k
1 vote
1 answer
87 views

Intro I have this Java implementation of a list data structure that outperforms on a benchmark even the Apache Commons Collection4 TreeList by a factor of 8. This ...
coderodde's user avatar
  • 33.1k
7 votes
7 answers
2k views

Is my logic good? Are variable names fitting? Are there any memory leaks? Am I doing anything dangerous (this is C after all)? Please feel free to criticize the code. I want to know if I'm writing C ...
buzzbuzz20xx's user avatar
9 votes
4 answers
2k views

Below is the code I wrote to implement a singly linked list. To keep things simple, I omitted things like copy constructor. Aside from general feedback, here are some specifics I would like addressed: ...
user1446642's user avatar