lambda mmmm lambSo I have an interview tomorrow and I was informed that they use Scheme at this location, so I brushed up on my skills… see if you can get the answer to this lock to return true.

    (define (secretcode lst)

      (if (and

        (= (- (cadddr lst) (* (car lst) (+ (cadr lst) (caddr lst)))) 1)
        (null? (cddddr lst)))
        #t
        #f))

2 Comments

By aditya on March 4, 2008

how did the interview go??

By Daniel on March 6, 2008

Turns out, I told him this problem after I couldn’t answer something regarding JDBC vs ODBC problem that he asked me…. I got another Interview baby!!

Time to think of a greater problem for those homeboys!

Comments RSS TrackBack Identifier URI

Leave a comment