Hi,

  This problem can be broken down and simplify into looking for the
longest contiguous red block + blue block where red block := (R | W)*
and blue block := (B | W)*, so you really just need one scan through
an ordinary array.

On Jun 2, 9:30 am, maverick gugu <[email protected]> wrote:
> Hi,
>
>   I couldn't make it round 2. But being my first time, it was a nice
> experience. :-) Hope to get more competitive the next time.
>
> I was just working out on a few programs in the mean time. I found some
> difficulty,
> This problem is called BROKEN NECKLACE. It would be nice if you can guide me
> with respect to C/C++.
> Link for problem 
> Statement:http://www.tjhsst.edu/~rlatimer/assignments2003/usaco3.html
>
> Was wondering if there is any new data structure to be introduced into this
> one? like a circular linked list or so. It is a little tedious with an
> array.
>
> Good luck for those who have made it to round 2.
>
> Thanks,
> 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.

Reply via email to