For the past few weeks, we have been learning about Linked List.
Here's a brief definition of Linked List:
"Linked lists are made up of nodes, where each node contains a reference to
the next node in the list. In addition, each node contains a unit of data
called the cargo."
Linked List contains a recursive definition and you can initialize it in different ways. Through the labs, I have learned how to prepend an item to the front of a Linked List. I find it easier to understand how to initialize a Linked List by setting a "head" and "rest" which is mentioned in the earlier lecture. However, I still have difficulties in initializing a Linked List through the "wrapper" approach. I'm planning to go over the reading materials listed for Linked List to make sure I understand it before the upcoming lecture.
No comments:
Post a Comment