All Questions
9
questions
3
votes
3
answers
150
views
Linked List Interview Code methods, runtime, and edge cases refactored
In my previous post I had a number of steps given to me from the accepted answer on how I can write more production ready code. In this post I want this code to be reviewed as near production code I'd ...
1
vote
1
answer
105
views
Single Linked List - simple approach
I am a student, trying to learn C++11 and data structures. I would like to ask you to to review my code.
I have spent some time and analyse similar questions on Code Review and it gave me basic idea ...
3
votes
2
answers
1k
views
C++11 Singly Linked List with raw pointers
Regarding C++, I have an experience in writing only short non-object-oriented programs and competitive programming challenges.
I would like to get your feedback about my C++ style, design decisions, ...
0
votes
1
answer
3k
views
Implementing a single linked list using smart pointers (replace std::shared_ptr with std::unique_ptr)
As an example code I've given here, I have the feeling the use of std::shared_ptr is wrong and should be replaced using a ...
2
votes
1
answer
3k
views
List implementation with shared_ptr using C++11
I wrote list, which I think is more elaborate than usual. I would like to ask you for some tips, criticisms, and general feedback about my code.
...
5
votes
1
answer
3k
views
Single LinkedList using smart pointers
In order to learn C++11, I propose to myself implement a simple single linked list using smart pointers. The idea was to cover the basic operations without leave any memory leak.
I came up with a ...
6
votes
2
answers
182
views
Optimising LinkedList class - Part 2
This is part 2. My problems are with too any pointers and with long body code in the following functions:
...
5
votes
2
answers
199
views
Optimising a LinkedList data structure - Part 1
I have implemented a linked list. I feel I overdid it with pointers, used old standards and C++11, and I ended with too many lines of code. I will make my quotations into two parts: one for the ...
6
votes
3
answers
13k
views
Singly linked-list with smart pointers
A few things:
I tried to do it with smart pointers because I wanted to learn about them. I'm not sure I made the right choice of type, however (and started to regret it half-way through).
This is ...