Saint Louis University |
Computer Science 220
|
Dept. of Math & Computer Science |
Topic: List and Sequence ADT
Related Reading: Ch. 5.2-5.3 and 5.5-5.6
Due:
9:30am Tuesday, 2 November 2004
Please make sure you adhere to the policies on academic integrity.
Using the List interface methods, describe a recursive function for determining if a list L of n integer objects contains a given integer k. Your function should not contain any loops. How much space does your function use in addition to the space used for L?
Creativity Exercise C-5.12 of the text.
(Hint available through
Hint Server
on textbook's website).
The document has moved here.