UNB/ CS/ David Bremner/ teaching/ cs2613/ assignments/ CS2613 Assignment 2

What to hand in, and how to hand it in

Marking

Questions

Solve FICS exercices 30

Note the rules of the exercise your solution(s) should not use explicit recursion or helper functions. You can (and should) use lambda. For full marks you should not use any builtins other than

You can define functions other than unique-left and unique-right to help debug your solution, but don't call them; rather substitute the definition body into your final solution. Here are some test cases. You may also want to compare your solutions to L05.

(check-expect
 (unique-right
  (list 1 4 2 1 5 4))
 (list 2 1 5 4))

(check-expect
 (unique-left (list 1 4 2 1 5 4))
 (list 1 4 2 5))