I have an unsorted linked list. To sort it, I thought I\'d put the values into a TreeSet with a comparator supplied, then return those values as a new linked list. Yet, it fails.
Every time I try to use my add function and return a list from it. I get an undefined symbol error. What am I doing wrong here.
I am getting illegal constructor when creating a new Node. I have tried doing it with array and it works but whenever I use Node it just gives me an error saying illegal instructor.