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.