You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Study-HTDP
Wow ! this exercise was difficult, my brain is fryed! Since a deepl-
list may contain list which contains list (i will assume
that the list has symbols as elements as well). one had to look
at the (first l) and the (rest l). here is the code:
(define (refined-depth l)
(cond
((empty? l) 0)
((symbol? (first l)) (add1 (refined-depth (rest l))))
(else
(+ (add1 (refined-depth (first l))) (refined-depth (rest l))))))
this problem was definitely a curve ball.
Grant Rettke
unread,
Oct 31, 2008, 5:13:43 PM10/31/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message