G
Guest
Hi,
in my application, I defined a linked list just as follows:
typedef struct _MYLIST{
int myval;
void *next;
}MYLIST;
MYLIST head;
So, the problem is the following: the value 'myval' located in each item of
a filled linked list contains a specific value - but not in the correct
order. so, what's the fastest way to sort the items in the list ascending by
their values in 'myval'.
How can this be done?
thanks a lot
Peter
in my application, I defined a linked list just as follows:
typedef struct _MYLIST{
int myval;
void *next;
}MYLIST;
MYLIST head;
So, the problem is the following: the value 'myval' located in each item of
a filled linked list contains a specific value - but not in the correct
order. so, what's the fastest way to sort the items in the list ascending by
their values in 'myval'.
How can this be done?
thanks a lot
Peter