CS 12 - Linked Lists

A linked list is a primitive data structure that allows you to store items of the same type, like in an array, but with slightly easier methods of re-ordering the data and adding new values at the beginning of the list. The concept of a linked list is quite simple: each node of a linked list has a piece of data, and a pointer to the next node in the list. This way, if you have a pointer to the first node in the list (called the "head"), you can follow through the list to get to every value.

A common method of representing a Node for a linked list of integers is as follows:
 
struct Node 
{ 
  int value;
  Node* next;
};

Specs

This program will perform a couple very simple list operations. We will do much more with linked lists in CS 14.

Your task is to read in an arbitrarily long list of integers, insert them into the head of a linked list, find the minimum element, remove that element, and then print out the list, now in reverse order.

Hints