4 ms·
Do all data structures resemble a linked list?
- darth_avocado 4y agoYes
- kevin_thibedeau 4y ago<see parent>
- 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