[Kc] 100 Monkeys: Solved

John Whitmore John.Whitmore at maryville.com
Wed Feb 12 13:59:09 CST 2003


A faster solution in the same vein is:
print "1 4 9 16 25 36 49 64 81 100"

Although I admit it is twice as long...

John
-----Original Message-----
From: Garrett Goebel
To: kc at mail.pm.org
Sent: 2/12/2003 12:16 PM
Subject: [Kc] 100 Monkeys: Solved
[- Algorithmic Solution -] 

All the submissions solved the problem with brute force. I was a bit
disappointed that nobody submitted an answer which solved it
algorithmically. 

  join' ',map$_**2,1..10 




More information about the kc mailing list