+ 1
Linked list
What's the easiest way to learn Linked list?
1 Answer
+ 4
draw the operations step by step on a piece of paper; that helped me so much when I was a beginner.
It's visual and interactive which is good for information retention
list of operations to try:
- create node
circle with a line pointing to null
- add node
create a node and place it in the appropriate location
- delete node
find the node, delete it, and relink the list
Knowing these 3 will aid in other operations such as reversing, sorting, linking 2 lists, etc.