Skip to content

Instantly share code, notes, and snippets.

View DeonPieterse's full-sized avatar
💻
Professional Yoda Condition Writer

Deon DeonPieterse

💻
Professional Yoda Condition Writer
View GitHub Profile
class Node<T>
{
private T _object { get; set; }
public Node<T> nextNode { get; set; }
public Node<T> previousNode { get; set; }
public Node(T _object)
{
this._object = _object;
}
class DoubleLinkedList<T>
{
private Node<T> _firstNode;
//private Node<T> _lastNode;
public bool isEmpty
{
get
{
return _firstNode == null;