CS321B_week10 - CS32 Discussion Section 1B Week 10 TA Hao...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CS32 Discussion Section 1B Week 10 TA: Hao Yu (Cody)
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Reminder & Agenda Review: Go through all topics! Practice problems Final exam Tomorrow! TV TOKYO Communications Corporation, LINE stickers
Image of page 2
Constructor/Deconstructor Type Default constructor Copy constructor Deconstructor Note Ordering! Scope of variables Allocated memory ( new ) must be freed ( delete )
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Linked Lists Type Single linked lists Doubly linked lists Circularly linked lists (dummy node?) Operations Insert/search/delete Consider all cases! (head/middle/tail/empty/full) Application stack/queue/heap/hash …
Image of page 4
Inheritance Concept The process of deriving a new class using another class as a base Note What can you see in the base/derived class? The order of constructors/deconstructors Overriding vs. overloading Polymorphism and virtual functions Abstract base class
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Recursion Design guideline – Leap of faith 1. Find the base cases What are the corner cases? e.g. empty array What’s the terminal condition? e.g. n=0, length=1 2. Decompose the problem
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern