On Dec 14, 2006, at 9:55 PM, William James wrote:

> Simpler:
>
> num_teams = ARGV.shift.to_i
>
> n = 1  ;  begin n *= 2 end until n >= num_teams
> teams = (1..num_teams).to_a + ["bye"] * (n - num_teams)
>
> while (n = teams.size) > 2 do
>   teams =  teams[0, n/2].zip( teams[n/2 .. -1].reverse )
> end
> p teams.flatten.partition{n=!n}.reverse.transpose
>
>
> "The most valuable of all talents is that of never using two words
> when one will do. "
> -Thomas Jefferson
>
> "Programmers are always surrounded by complexity; we cannot avoid
> it.... If our basic tool, the language in which we design and code
> our programs, is also complicated, the language itself becomes part
> of the problem rather than part of its solution. "
> -C. A. R. Hoare (1980 Turing Award Lecture)
>
> "To attain knowledge, add things every day.
> To attain wisdom, remove things every day."
> -Lao-tse
>
> "Perfection is attained, not when there is nothing left to add, but
> when there is nothing left to take away. "
> -Antoine de Saint-Exupery

I don't mean to play netiquette police here, but there is about twice  
the amount of clever quotes as there is content in this message.   
Maybe that signature is a bit long.

James Edward Gray II