3 ms·
> Below is a simple implementation of a Linked List in C++: LinkedList<string> myLinkedList = new LinkedList<string>(); LinkedList<T> myLinkedList = new Li
by tmtvl 4y ago
> Below is a simple implementation of a Linked List in C++:
LinkedList<string> myLinkedList = new LinkedList<string>();
LinkedList<T> myLinkedList = new LinkedList<T>();
Yeah, great implementation. Seriously though, you couldn't even spare the time to write something like (not C++):
deftype Linked-List
#:optional : value-type T
Option : Node value-type
defstruct
Node
#:optional : value-type T
head +none+ #:type value-type
tail +none+ #:type : Linked-List value-type
- foogazi 4y agoYeah, huge red flag right here