University of Toronto - Winter
2007
Department of Computer Science
CSC 324:
Principles of Programming Languages
Assignment 2
Clarification Page
Communications
Feb 3 There will be a TA help session for Assignment 2:
Thursday February 8
4:00 - 6:00 PM
Pratt 378 (6 King's College Road, 3rd floor)
Corrections or Clarifications
General Clarifications
Feb 7:
- A nested list is s list, one of whose elements is itself
a list. E.g., (1 (2 3) 7 10) is a nested list.
- A flat list is a list that is not nested. E.g., (1 2 7 10)
Question 2
Feb 7: Your procedure should also work with flat lists.
E.g., (topsyturvy2-4 '(1 2 3 4)) returns (1 4 3 2).
Question 3
Feb 3: There is a typo in Question 3. Thanks to Janos for
catching it.
(else (unknown (cdr a-list) c1 c3 c3))
should be:
(else (unknown (cdr a-list) c1 c2 c3))
Question 5
Feb 7: There is a typo in Question 5, which hopefully most of you
figured out.
The question says currently says:
Write a predicate procedure (palindrome? lst) where lst is a list,
that tests to see if lst is a flat list and if it is that has the same
...
The word that should have been the word flat.
Back to the main page