[PyAR2] Car Talk Puzzler (The Hall of Lights)

Wayne Werner waynejwerner at gmail.com
Thu Nov 3 19:33:42 CET 2011


On Wed, Nov 2, 2011 at 3:14 PM, Greg Lindstrom <gslindstrom at gmail.com>wrote:

>
> I wrote a Python program to "solve" this is 8 (non-blank) lines long,
> including one line, "MAX_LIGHTS = 20000" used to adjust the number of
> lights for debugging/testing.  Let's see how YOU would do it (I'll post
> mine in a couple days).
>

Using MAXLIGHTS, I've got in 6 lines - one of those is to actually display
the output. After searching to confirm my answers were correct, I also came
up with an extremely short one-liner - You'd have to use two lines in
Python 2, though.

-Wayne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/mailman/private/pyar2/attachments/20111103/2c022490/attachment.html>


More information about the PyAR2 mailing list