Can any one give me an idea how to insert or delete a node from a specific position.
Please explain it with a sample code so that i can understand it well..
Thanks
Can any one give me an idea how to insert or delete a node
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The idea is :
1°/ Find the position where you want to Insert or Delete.
2°/ Save the next node to link it to the new node (Insertion) or to the previous node (Deletion)
It should look like this for the Insertion :
Now try yourself for the Deletion :).