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

Re: Re: Re: Golf Challenge - does $x and $y fit into the same slot on @z?

by sauoq (Abbot)
on Dec 28, 2002 at 02:03 UTC ( [id://222673]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Golf Challenge - does $x and $y fit into the same slot on @z?
in thread Golf Challenge - does $x and $y fit into the same slot on @z?

Erm. Isn't that covered by the bit that says

Hrm. It's a debatable point, I suppose.

It explicitly states that that should be the strategy when determining "betweeness" whereas the example test cases I gave were those dealing with "greater than" or "less than" all the numbers in the array. I'm wavering more toward the poorly stated specification option now, though.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: Re: Re: Golf Challenge - does $x and $y fit into the same slot on @z?

Replies are listed 'Best First'.
Re: Re: Re: Re: Golf Challenge - does $x and $y fit into the same slot on @z?
by BrowserUk (Patriarch) on Dec 28, 2002 at 02:21 UTC

    Understood. I took it to be a "fenceposts" problem

    • -infinity < ($x & $y) <= $z[0]
    • $zn < ($x & $y) <= $zn+1
    • $z-1 < ($x & $y) <= +infinity

    but now you have pointed out an alternative reading, I can see the ambiguity.

    20:20 vision in hindsight :^)


    Examine what is said, not who speaks.

Re (4): Golf Challenge - does $x and $y fit into the same slot on @z?
by ehdonhon (Curate) on Dec 28, 2002 at 16:35 UTC
    I'm wavering more toward the poorly stated specification option now, though.

    You're probably right, although BrowserUk did have the correct interpretation.

    It was my first golf challenge ever. If I ever get the courage to post another one, I will be sure to be more clear. Although, I have the feeling that no matter How clear I make it, there will always be somebody that will find a loophole.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://222673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (10)
As of 2024-04-16 11:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found