Linked Lists

Node Structure

template <typename T>
class SLListNode {
private:
  T element;
  ListNode* next;
  friend class List;
};
template <typename T>
class DLListNode {
private:
  T element;
  ListNode* next;
  ListNode* prev;
  friend class List;
};

Linked List Sketch

template <typename T>
class DSList {
private:
  DLListNode* front;
  
};