hacker.org Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Search found 11 matches
hacker.org Forum Index
Search found 11 matches
Author Message
Topic: Big Fib
blablaSTX

Replies: 36
Views: 29213
PostForum: Challenges   Posted: Mon Aug 31, 2009 6:23 pm   Subject: Big Fib
... "in the traditional way" ...

Almost; two little tricks help with big numbers, though (both a math trick and a coding trick).
That should not reveal too much info, I hope.
Topic: Sample Solving Algorhythm
blablaSTX

Replies: 10
Views: 16580
PostForum: Runaway Robot Puzzle   Posted: Mon Aug 31, 2009 12:38 am   Subject: Sample Solving Algorhythm
scheme vs. Lisp:
Scheme is a lisp with guaranteed tail-call elimination, guaranteed continuation support and a few other nice semantic highlights. The syntax is lisp (aka functions with parens around ...
Topic: Big Fib
blablaSTX

Replies: 36
Views: 29213
PostForum: Challenges   Posted: Tue Aug 25, 2009 1:03 pm   Subject: Big Fib
there is no need for it be prime, so please do not discard your result simply because it ends in zeros.


(1 to:20) collect:[:n | n fib]

gives:
#(1 1 2 3 5 8 13 21 3 ...
Topic: Didactic Blue
blablaSTX

Replies: 44
Views: 51955
PostForum: Challenges   Posted: Thu Aug 20, 2009 11:52 am   Subject: Didactic Blue
I wont give you a hint, but an advice: go away, try some other puzzles and come back later. That gives you a "new look" at the picture.
Page 1 of 1
All times are GMT
Jump to: 


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.