Write an implementation of Min-Max algorithm ...

And it will give you the definitive answer. Not the most efficient way though, since it is based on exhaustive search.

The implementation will be within 200 lines of codes.

Max(P) = Max(All Min(P-sub))
Min(P) = Min(All Max(P-sub))

請您先登陸,再發跟帖!