Linked Lists
Consider the following definition for a singly linked list.
struct NodeT {
int data;
NodeT * next;
};
- [6 points] Write a function which, when passed the head of a properly formed linked list, will delete all of the elements in that list.
- [8 points] Write a function which, when passed the head of two properly formed linked lists, will compare the elements of these lists and return true if these lists contain the same elements and false otherwise.