last-elements-of
procedure without bothering to write it,
and can write
(define dp-pick-chocolates (lambda (chocolates weight-limit) (let ((table ...same as in memoized...)) (define pick-chocolates ...same as in memoized...)rather than actually writing out the parts (particularly the definition of
pick-chocolates
) that are the same as in
the memoized version.