What's a node? Elaborate please. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What's a node? Elaborate please.

I want to know what is a node like in linked lists. Actually, I'm going to learn about some more data structures. And before doing that I want to clear this basic term which seems to be common in many or perhaps in every data structure. A Python code will give me a better understanding.

3rd Nov 2019, 5:31 AM
Abdul S Ansari
Abdul S Ansari - avatar
2 Answers
+ 1
Consider a node as a structure, like a box which is divided into two or three parts. Let us consider a singly linked list which has two parts. One part can store a value and the other is a pointer. So the pointer can be used to point to another node of the same structure. In this way many nodes are connected together.
3rd Nov 2019, 10:39 AM
Avinesh
Avinesh - avatar
+ 1
Avinesh Thank you
3rd Nov 2019, 1:26 PM
Abdul S Ansari
Abdul S Ansari - avatar