indexing on linked list
Posted on 2003-03-31
Can anyone please give me an idea on "indexing on a linked list".
The linked list would have the following description.
listdetails details; // structure defined below
typespace adspace; // another linked list defined below
char* default value;
there may be maximux of 20 elements in the list( it may increase later), hence while searching a particular element i dont want to do a string campare everytime that would not be an optimum code.
is there is any way i could index the first linked list so that the lookup would be faster.
please get back to me at the earliest.