It's been over a year since I last did linked lists but it's coming back to me. Last time I did it in C so it was a little more confusing. Python makes it very easy to create a node object and a linked list. The more implementations of linked lists I see, the more useful it seems. The example in class make it very easy to make a queue. To pop the stack just take the front node and change the front pointer to point to the front nodes next value. In class we learned how to represent these ideas visually and it's surprising how much faster it is to code when you can look at a drawing of the end result. This is not surprising because the same result is achieved when writing the documentation first, something I know a lot of people don't do. I used to be like that but csc108's emphasis on doc strings caused me to change.
The other looming thing in this course is the first assignment. I have been reading it over and thinking of how I will implement each feature. To avoid wasting a lot of time on simple mistakes I have found a partner. Having a partner is great because sometimes a fresh set of eyes will catch a simple bug that would have taken hours to debug alone. So far the course has been very enjoyable and I am looking forward to next week of lectures.
No comments:
Post a Comment