(pythagoras 3.0 4.0) => 5.0
(no-duplicates '(1 3 3 8 5 3 5)) => (1 3 8 5) (no-duplicates '(1 3 5)) => (1 3 5) (no-duplicates ()) => ()
If you try to add an element to a tree that already contains that element, just return the tree (don't make a new tree). If you try to delete an element from a tree that doesn't contain it, signal an error using
(error "element not found")
You should choose an appropriate representation for binary trees (hint: represent a node in the tree as a list with 3 elements).
The entire assignment 1 solution hw1.s
and
postscript.