Thursday, 12 March 2015


    LinkedList made me confused at first. The “front” of LinkedList seems to be everything you need to know about LinkedList, and if printing it, you will get a complete LinkedList. It was tempting to assume that “front” is just the LinkedList itself. But Diane gave us a great example. She said LinkedList is like the process of treasure hunt, and front is the first clue that leads to other clues.      

    Another confusion was that LinkedList is mutable. I did not pay attention to this property of LinkedList at start, so it was no surprise that I made mistakes in lab. However, drawing pictures really helped me out. In this way, writing code is more comfortable and I made fewer errors.

1 comment:

  1. Hello Kirin,

    You are right! Drawings are the best way to understand this topic. It may be helpful to notice that LinkedList is just a wrapper for the Linked list nodes(LLNode).

    Also, front is a variable in LinkedList that refers to the first linked list node.

    All the best,
    Christian

    ReplyDelete