need to sort link lists in descending order (greatest to least), from a input file. each entry represents a link list and the ordering should be based on their priority variable
typedef struct Student{
char* firstName;
char* lastName;
int priority;
int readingLevel;
struct Student* next;
}student;
the file is basically:
firstname, lastname, digit for priority level, digit for reading level.
ex-koolaid man 4 8
assume we dnt have a set number of entries, how would i go about sorting this. i saw that the merge is the best for link lists.
@gabbo @Mowgli @Matt504 @houston911 @SheWantTheD @The Wave etc.
typedef struct Student{
char* firstName;
char* lastName;
int priority;
int readingLevel;
struct Student* next;
}student;
the file is basically:
firstname, lastname, digit for priority level, digit for reading level.
ex-koolaid man 4 8
assume we dnt have a set number of entries, how would i go about sorting this. i saw that the merge is the best for link lists.
@gabbo @Mowgli @Matt504 @houston911 @SheWantTheD @The Wave etc.