![]() |
Linked Lists Implementation
Linked Lists Implementation ...
Code: C
|
Re: Linked Lists Implementation
We have quite a few Linked List code in the forum.
|
Re: Linked Lists Implementation
Hello guys..
first of all.. thanx a lot for the codes.. But would you mind giving me an explination about the above code. many thanks in advance. :) |
Re: Linked Lists Implementation
Quote:
|
Re: Linked Lists Implementation
Thanks for your reply and Thanks so much in advance for your helping.
1- Code:
void add(struct node **q ,int num)Code:
void insertafter(struct node**q ,int pos,int num)Code:
void del(struct node **q ,int num)Code:
void search(struct node **q,int num) |
Re: Linked Lists Implementation
1-
Adds the Node based on the head location.2- Searches the node and inserts after a particular node3- Searches the data and then deletes it and arranges the pointers.4- Searches the particular node by doing a linear travelling |
Re: Linked Lists Implementation
The array implementation of multisets is really only practical if the number of items in the universe, N=|U|, is not too large. If N is large, then it is impractical, or at least extremely inefficient, to use an array of N counters to represent the multiset. This is especially so if the number of elements in the multisets is significantly less than N. If we use a linked list of elements to represent a multiset S, the space required is proportional to the size of the multiset, |S|. When the size of the multiset is significantly less than the size of the universe, tex2html_wrap_inline67534, it is more efficient in terms of both time and space to use a linked list.
|
Re: Linked Lists Implementation
Hey, haven't watched this article, I have also submitted an article on Linked List in C++ just now, please check if it's useful or not, This one is also good. Lets c if I can combine both one and make new simple and easier one ;)
|
Re: Linked Lists Implementation
your implementation is correct , one small opinion :
As u have declared the structure globally , why are u passing the structure everytime for every function as a argument ..... since ur structure is global , you could have directly access it na.... so readability of your program increases............. thank u:):):) |
Re: Linked Lists Implementation
keep it up my dear
|
| All times are GMT +5.5. The time now is 20:16. |