You can collect all winning combinations and store them separately and check
whether each of them have occured! The complexity will be
T(n) = O(no of possible winning combinations)

On Thu, Jul 28, 2011 at 7:16 PM, amit karmakar <amit.codenam...@gmail.com>wrote:

> Will the given game configuration always be a completed game i.e no more
> moves can be done?
>
>
> On Thu, Jul 28, 2011 at 7:10 PM, radha krishnan <
> radhakrishnance...@gmail.com> wrote:
>
>> Excuse me MR.balaji :P
>> U got selected for Microsoft Redmond :P still preparing ? :P
>>
>> On Thu, Jul 28, 2011 at 6:01 AM, Balaji S <balaji.ceg...@gmail.com>
>> wrote:
>> > Given a 3X3 matrix , with 1's 0's and -1's ( 1 is player one 0 is player
>> two
>> > -1 is none)
>> >
>> > how ll you find who is the winner / draw in a tic tac toe game in the
>> most
>> > effiecient manner...
>> >
>> > --
>> > With Regards,
>> >     Balaji.S
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Algorithm Geeks" group.
>> > To post to this group, send email to algogeeks@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > algogeeks+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/algogeeks?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Cheers,

  Vicky

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to