This week we have learned linked list. This is a linear sequence of nodes. It has two variables which is a front or head, and a back or a tail. Usually, the back of one front is also a front of the other back. This way, nodes are linked together to form a linked list.
The hardest part of linked list for me is to understand how it works. It is called a "list" but it's nothing like a list other than it's shape. It is formed by several nodes. So for sure you can't get any specific nodes but calling the index. It took me a long time to figure how to call a node by recursion. So it is fine for me now.
No comments:
Post a Comment