Monday, 9 March 2015

LLNode and LinkedList

  Last week we started a new class, Linkedlist and LLNode. A LinkedList is, as its name suggests, a bunch of lists that are linked together. Class LLNode is specific to LinkedLists, and LinkedLists are essentially one or more LLNodes combined. This concept was confusing to me at the beginning. However, it really helped when I reviewed the codes posted online. By carefully looking through the code and starter functions provided, I have a much better idea of how the classes work.


  Because of the TA strike, there was no tutorial last week. I briefly tried the tutorial exercise on LinkedList and found it much harder than I expected. This is when I realized I still don’t understand the material well enough. Fortunately, the solution posted on the course website helped me a lot on this topic. After looking at the solution for the first function, I had a much better idea of what to do. With the help of while loops, we can find the correct section of the LinkedList we want to work with. By the way, as Danny suggested, drawing pictures really helped. For me, it shows and reminds me where to “disconnect” or “connect” the LinkedList in different functions.

No comments:

Post a Comment