On a side note, this week's midterm went pretty well. I felt like I did pretty well, while the only problem I had was remembering what the type contract was when in __eq__, what to assign to 'other'. As for the length of the midterm itself, it took quite a while, mostly because I spent a lot of time rewriting the name of classes when called but i wouldn't consider it too long. Others said they were pressed for time.
As for this week, we did more ADT in tutorial. It didn't take long to understand even though we only had a fraction of a lecture to do it. Interestingly enough, queues are basically recursion. What I did question was that once you got to an inner list, and was told to break apart that list and re-add the elements of said list back into the queue, the definition of the puts those elements at the back of the queue, rather than at the front. Is this correct or do we need to change it so that it re-adds at the front?
No comments:
Post a Comment