CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 13:38:02 GMT
content-type: text/html; charset=utf-8
cf-ray: 964c0e2c4dbbc174-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=79596bb0-d381-4776-bd92-cb207bd36068; expires=Sat, 25 Jul 2026 13:38:02 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: e031ae85-25de-47fa-8c57-b7a5e3052e53
x-worker-origin-response-time: 545000000
x-dns-prefetch-control: off
set-cookie: prov=79596bb0-d381-4776-bd92-cb207bd36068; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=cim94wNTiJWpm0qF5bl4ILmoZzm3wB3MStbTbcdSMu4-1753450682-1.0.1.1-9uLO9LCJMaivD2yOtf2y1Ni_KB58XPvK3nE2piqN681DoArvGyMgJlDVITa6dDk6n7J_3DLe5OGNFBRsF4Q92CeLRuuu.cISWvrFKAsF1V4; path=/; expires=Fri, 25-Jul-25 14:08:02 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=OsBeLOcKi3uABMjjrS3JRTU.IAEDqNYNY6FvnWqP3a4-1753450682852-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'linked-list' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [linked-list]
A linked list is a data structure in which the elements contain references to the next (and optionally the previous) element.
1,072 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
7
views
IndexedLinkedList.java - A fast list data structure for large data, Take IV/V (inner classes)
Intro
This post is the continuation of IndexedLinkedList.java - A fast list data structure for large data, Take III/V (private API).
Code
...
0
votes
0
answers
8
views
IndexedLinkedList.java - A fast list data structure for large data, Take III/V (private API)
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
...
0
votes
0
answers
11
views
IndexedLinkedList.java - A fast list data structure for large data, Take II/V (package private API)
Intro
This post is the continuation of the IndexedLinkedList series. It presents the package private API:
Code
...
1
vote
1
answer
49
views
IndexedLinkedList.java - A fast list data structure for large data, Take I/V (public API)
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 ...
7
votes
7
answers
2k
views
LinkedList data structure in C
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 ...
9
votes
4
answers
1k
views
C++20 Singly Linked List with Iterator
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:
...
4
votes
3
answers
1k
views
Java class subset of C++ std::list with efficient std::list::sort()
Issues with generics < E > and < E extends Comparable > in code below. What changes are needed in the code below to prevent DLList.push_front() and DLList.push_back() from accepting ...
4
votes
2
answers
162
views
Basic Linked List Implementation in JavaScript
Clarification of Intent
Recursion here is used on purpose for practice - note that iteration is preferred in this case (I'll be more clear about where my intentions are!)
Factory function was also ...
3
votes
1
answer
79
views
Simple Stack and Deque implementation (v2)
My previous post: Simple Stack and Deque implementation
I have implemented 2 classes for my project similar to stack and deque. This is my second attempt to get advice and evaluation of my code. Maybe ...
1
vote
1
answer
120
views
Simple Stack and Deque implementation
I implemented a single-linked and double-linked lists (like stack and deque). I would like to receive your feedback on improving the code or maybe some comments. I'm learning C++ for the third month. ...
4
votes
3
answers
681
views
Error handling for singly linked list in C
I have seen many list implementations in C in this site; I know its been asked many times. I need some advice regarding:
Quality of my code, especially my list library.
How to handle errors in main (...
9
votes
2
answers
1k
views
C# Linked List implementation
I am trying to learn C# and created this project to improve. I will be using C# professionally so a harsh critique is welcome.
...
2
votes
1
answer
66
views
Advent of Code 2022 Day 13 Solution in C: Sorting and parsing nested list
Link to Original Problem: Advent of Code 2022 Day 13
Question Summary:
The task involves sorting and parsing nested lists, with two parts:
Determine pairs in the correct order and calculate the sum ...
3
votes
4
answers
725
views
Adding Node to Linked List
I've been programming for 3 months now, and I've just come across Linked List, and I'm not gonna lie, I've been struggling a little. I wrote this code to practice on Linked Lists. The purpose is to ...
5
votes
2
answers
398
views
Count the frequencies of each word in a file
I have tried to implement a code that does the following:
store words in an array (unordered)
use function order_array() to place repetitions for the same word ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c++ × 326
c × 260
java × 257
beginner × 114
algorithm × 91
python × 84
c++11 × 64
stack × 61
pointers × 55
c# × 54
performance × 52
interview-questions × 44
memory-management × 42
object-oriented × 36
queue × 33
javascript × 31
python-3.x × 31
circular-list × 30
hash-map × 25
iterator × 25
mergesort × 25
unit-testing × 25
generics × 20
more related tags
Hot Network Questions
- Anonymizing a submission for double-blind review
- Dystopian 80s sci-fi movie about the USA choosing mediocrity
- Are birth control pills classified as a carcinogenic at the same level as asbestos and tobacco?
- Early Sailing days in September 1066... Could Harold defeat William at Hastings, if it happened before Stamford Bridge?
- When playing sine into class D amplifier, why is Vdd ripple voltage the 2nd harmonic of the sine?
- Make a Mulenère encryption program
- When was the last time all alive humans stayed on earth?
- Huge Difference in Interaction P-values Between Linear vs. Ordinal Regression (0.991 vs. 0.001)
- How to 'scale' a square list?
- Surjectively universal Polish space
- In what sense is the double negation topology functorial?
- mmwave presence sensors, DIY alarm integration
- Do things unknown automatically become unknowable in normal epistemic modal logic
- Are classified documents subject to a subpoena in discovery?
- Blinded despite Blindsight?
- Interaction with para hooks and footnotes
- What Isp can be gotten from a napthalene (mothball) hot gas thruster? Did it work in space?
- Entity Framework - Is there a safety mechanism to prevent accidentally running Update-Database?
- Write two very different programs with the same characters
- Is it decidable wether a CFL can be recognized by a linear CFG?
- Why are police personnel of all ranks called officers?
- What does this word "ahn-shdah-heh" mean?
- Why does “brew search” for “peertube” match with “freetube”? How does the search work?
- What is that "T" in the pattern string of the date-command?