At 11:25 PM 7/7/2007, you wrote:
Write an algorithm (not language specific code) to do the following:

Players is a variable holding the number of players in a single
elimination tournament. If you loose a match, you're out. The
winner is determined when there is no one left to play.

This is trivial:
number of matches required to get a winner = number of players - 1
explanation:
one match eliminates one player
every player but one must be eliminated to have a winner
therefore.......


Michael Southwell, Vice President for Education
New York PHP
http://www.nyphp.com/training - In-depth PHP Training Courses


_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to