ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: Cookie Monster!
by Quentin Sabah other posts by this author
May 10 2008 6:46AM messages near this date
Re: Cookie Monster! | Re: Cookie Monster!
Here is the result of my dynamic-programmed cookie monster:

$ time ruby challenge.rb
ESSESSSSSSESSEESEEEEEE = 74

real  0m0.022s
user  0m0.012s
sys   0m0.008s 
(ibook G4)

$ wc -lc challenge.rb 
      50    1521 challenge.rb

Same path as in Robert's solution.

regards,
quentin
Thread:
Lee Jarvis
Quentin Sabah
Kai Krakow
Robert Klemme

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved