[racket] Visualization of Exercise 12.4.2 (arrangements)

From: Jos Koot (jos.koot at gmail.com)
Date: Sun Feb 24 05:46:54 EST 2013

I'll be happy to look into your code.
Send it me personally.
Jos

  _____  

From: users-bounces at racket-lang.org [mailto:users-bounces at racket-lang.org]
On Behalf Of Michael Situ
Sent: domingo, 24 de febrero de 2013 0:31
To: users at racket-lang.org
Subject: [racket] Visualization of Exercise 12.4.2 (arrangements)


Hi,

I solved Exercise 12.4.2 (the arrangements problem) after writing clear
purpose statements and writing a few different auxiliary functions. It was
an eye-opener for relying on wishful thinking and trusting that recursive
calls would work as intended.

Exercise 17.6.5 (gift-pick) calls for us to use 'arrangements' again, and
after changing the variable names to make it a general-purpose function, I
realized that I'm still having trouble visualizing a flow-chart. I don't
want to spoil the experience by emailing my solution to people who may still
be working on the problem, but could someone who has a good handle on the
problem please review my code and help me visualize the flow?

Thanks,
Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130224/19826470/attachment.html>

Posted on the users mailing list.