Introduction:
Linked list has many function as many as a user can make or developer can understand that it can create how many functions in linked list.Because there is not only single link list.There are two type of link lists the one is single and the other is double but firstly we have to understand the define of the link list.
Link List:
As by the words meaning link mean attachment of somethings which are two or more than two.When we attach these things with each other then there would be created a link in between them.Which make them to contact each other.The second word list mean a lot of number in a sequence or in joining one another.There list can be of one,two or more things.In together these words give the meaning that a list in which every element is connected with each other and make a link in between every next and previous element.Now we Go through the functions of the link list.
Functions Names:
As in the last paragraph this was discussed that the functions are as how many as developer can think to make but there are some main functions which we have to discuss here.
Functions of single link list:
Functions of single link list:
- Initialization
- Create
- Insert at first
- Insert at
- Insert last
- Remove first
- Remove last
- Remove At
- Triverse
- Reverse
- Circular
- Sorting
- Initialization
- Creation
- Insert
- Remove
Explanation:
- Initialization:
But if there already exist a node then create a new node connect it with the previous node and then make this node as the last node that when we make the next then by last pointer we can access it and then attach with the new one and then make that new one the last node for the next use.
- Insert first function:
- Insert At Last:
- Insert At inn between the Node:
0 Comments
Commet
Emoji