On Tue, Sep 29, 2009 at 10:14 AM, harit agarwal <[email protected]>wrote:

> in my code....i am doing the same thing the winner is compared to the new
> player and saved as winner and previous winner is also stored in another
> variable.......so comparisions r same.....
>
>
> The problem is your code doesn't provide correct results. Try to dry run
the code for some more test cases like ( 4 3 2 1) ,  ( 3 1 3 2).
Refer "Introduction to Algorithms, II Ed." (Cormen) Exercise 9.1-1 and the
preceding discussion for more info regarding tournament principle.

> >
>


-- 
Shishir Mittal
Ph: +91 9936 180 121

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to