I imagine you have to combine the region of white beads into one of
the adjacent regions depending on which of the two solutions produces
a triplets of groups with an highest outcome; i mean, imagine we have
this list of regions:
R6 B5 R2 W5 B2
We could:
- combine W5 with R2, obtaining B5-R7-B2
- combine W5 with B1, obtaining R2-B7-R6
Thus the best solution is to make the white group blue.

Mine are just thoughts, I haven't tested it too much ..

On Sat, Jun 5, 2010 at 2:06 PM, maverick gugu <[email protected]> wrote:
> Hi,
> Sorry, I'm stuck again. almost had the solution.
> While we scan through the array onceĀ and divide them into regions:
> Are we supposed to have over lapping regions, because when we consider a 'w'
> it can be included in either of the regions right?
> -Maverick
>
>
> --
> 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.
>



-- 
Matteo Landi
http://www.matteolandi.net/

-- 
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.

Reply via email to