Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
go ahead... be a heretic
 
PerlMonks  

Re: Challenge: Egg Timer Puzzles

by GrandFather (Saint)
on May 02, 2006 at 19:42 UTC ( [id://547018]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Challenge: Egg Timer Puzzles

Nice challenge, but a number of sample problems would be good as test cases and to indicate a unified way of providing the problem data.

I guess something like: <target time> <, timer time>+ would be appropriate. So your sample problem could be specified as:

3, 7, 4

with the answer provided as:

begin 7, begin 4 ends 4, begin cooking ends 7, end cooking (time = 3)

DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: Challenge: Egg Timer Puzzles
by Limbic~Region (Chancellor) on May 02, 2006 at 19:48 UTC
    GrandFather,
    Good point - thanks. In this particular case I don't see much harm in letting contributors interpret things as they want to as it is just a fun exercise in learning but some uniformity is always a good thing.

    Let this serve as a guideline for anyone seeking one.

    Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://547018]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.