As always, please include a contract, a purpose, examples, and tests for each function.
You may work in pairs or individually on this problem set.
Exercise 12.3.1. Read the entire Section 12.3 first to understand the problem better.
Extended exercise
in Section
12.4. Use your notes from the class as a guide. Make sure to
write tests for your functions. However, don't
use check-expect
since the results may appear in a
different order causing check-expect to fail even when you are getting
correct results.
Important: we used different names for functions in class. You may use the names from the book or the names that we used in class or come up with your own, as long as they are descriptive.