Where does Linked list store its data? is it using an Array or how does it work?
I know that it works with nodes but how does it actually store the nodes?
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.
One
Nodelinks to (i.e. contains) the nextNodein the sequence. TheLinkedListclass actually only contains the firstNodein the list.For example:
A linked list of
A,B,Cis as follows:LinkedListcontains a member variableA,Acontains a member variableB,Bcontains a member variableC.Ccontains anullmember variable.A–>B–>C–>nullShould you Insert a new node, it would become…
A–>B–>C–>D–>null