I have on class that represents a Linked List of template<class Object> and another class IntList which uses that Linked List class as a private data member.
I need to be able to compare two IntLists, so I need to compare their LinkedLists. However, this becomes difficult since I cannot access each Node and compare from IntList. My only option is to remove from the front of each List, compare them, and put that element in the back, and at the end of comparing, move the values from the back to the front again. Is there an easier way to compare my two Linked Lists?