Nodes

Table of Contents

Nodes

Singly Linked List Node

struct SinglyLinkedListNode {
  int value;
  struct SinglyLinkedListNode* next;
};

Doubly Linked List Node

struct DoublyLinkedListNode {
  int value;
  struct DoublyLinkedListNode* next;
  struct DoublyLinkedListNode* prev;
};

Tree Node

struct BinaryTreeNode {
  int value;
  struct BinaryTreeNode* left;
  struct BinaryTreeNode* right;
  struct BinaryTreeNode* parent; // this is optional
};

Empty BinaryTreeNode

BinaryTreeNode

Full BinaryTreeNode

FullBinaryTreeNode