Confusing Algorithm

Chris Angelico rosuav at gmail.com
Mon Apr 22 11:02:31 EDT 2013


On Tue, Apr 23, 2013 at 12:57 AM, Oscar Benjamin
<oscar.j.benjamin at gmail.com> wrote:
> On 22 April 2013 13:56, Chris Angelico <rosuav at gmail.com> wrote:
>> There are other possible readings of the problem.
>
> I read it differently. I thought the threads would go 1->5->7->5->2.

I hadn't thought of that one, but agreed, that's also plausible, and
it results in an answer of 4. It's a stronger contender than the one I
posited, because the wording implies that there are multiple ways to
do it and you have to pick/find the best. Seems to me the problem's a
little under-specified, tbh.

ChrisA



More information about the Python-list mailing list