Write a C++ function that starts with a single linked list of items and a specia
ID: 3667846 • Letter: W
Question
Write a C++ function that starts with a single linked list of items and a special value called the splitting value. Two item values can be comparred using the < operator- but the items of the original linked list are in no particular order. The procedure divides the nodes into two linked lists: one containing alll the nodes that contain an item less than the splitting value, and one that contains all the other nodes. If the original linked list had any repeated items integers (i.e, any two or more nodes with the same item in them) then the new linked list that has this item should have the same number of nodes that repeat this item. It does not matter whether you preserve the original linked list or destroy it in the process of building the two new lists, but your comments should documents what happens to the original linked list.
node1.h: http://pastebin.com/TRp1xXrt
node1.cpp: http://pastebin.com/mYwFk4Ne