That is correct. The UNKNOWN option will never appear, its either black or white
You can use dynamic programming to deal with these cases, but some contestants found a pattern of choosing the balls, which will eventually result: if (b is odd) return black else return white On Sep 2, 4:46 pm, senthil <[email protected]> wrote: > http://code.google.com/codejam/contest/dashboard?c=32004# > > In this problem, I dont understand where the UNKNOWN option is > applicable > And, > for each input there are three probablities > for example for the input > > W B > 3 6 > > The probabilities are , > W B > 2 0 > 1 1 > 0 2 > , how would I select particular one ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-codejam" 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/google-code?hl=en -~----------~----~----~----~------~----~------~--~---
