Another Linked List Question
I have a linked list. Each node has 2 pieces of data (a name and a number) plus the pointer to the next node.
One of the pieces of data is an arbitrary number. I need to somehow create a function that can print out the names in the ascending order of their corresponding numbers.
for example if:
Code:
NODE 1: brad,5
NODE 2: joe, 7
NODE 3: ralph, 2
then my function should print out:
does anyone know how I might go about doing this, I'm new to link lists and this is confusing for me, I'm not asking for code just ideas.
Thank You