Homework4 (due Sun 20-Sep at 8pm)
Please note the homework policies in the
syllabus.
Exercises
- Video-Guided Exercises
Note that you must first carefully watch the video
for each of these exercises. Do not skip the video, or you
will spend far too much time on this part of the homework.
- removeEvens (mutating and nonmutating) (1)
- Lecture-Guided Exercises
We will carefully cover the solutions to these exercises
in lecture or recitation.
We strongly discourage you from attempting these problems prior to then.
- removeRepeats (mutating and nonmutating) (1)
- lookAndSay and inverseLookAndSay (2)
- multiplyPolynomials (2)
- runSimpleProgram (4)
- Unguided Exercises
Notes:
- These exercises do not include any sample solutions.
- You may find that it is most efficient to not attempt
these problems until after Thursday's lecture.
- Do not just use AI to solve these. While AI is allowed, over-reliance on AI will severely impair your learning.
- You will have to solve similar free-response
problems (or perhaps slightly harder ones)
on the quiz, which is on paper
and without access to AI.
Exercises:
- isNearlySorted(1)
- rotateList (mutating and nonmutating) (2)
- isClique (2)
- Bonus (optional) Exercise