[REBOL] Re: Another coffee break problem?
From: greggirwin:mindspring at: 10-Nov-2003 18:13
Hi Joel,
JN> The following 3-by-3 display is a simple magic square:
JN> 0 8 4
JN> 5 1 6
JN> 7 3 2
JN> because each row and each column sums to 12. Write a function which
JN> uses the integers 0 thru 8 (once each!) to construct all possible
JN> 3-by-3 simple magic squares. Make it run as quickly as possible.
No diagonals? I thought magic squares had to work on the diagonal as
well? (not to be nit-picky or anything :)
-- Gregg