Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Challenge: Egg Timer Puzzles

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


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 23: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-16 04:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found