Because you should consider flips from right to the left. Consider this
test case:

6 CSSCS

Your program outputs 2, should be 1.

On Mon, Apr 9, 2018 at 9:16 PM, aagontuk <sajib.fi...@gmail.com> wrote:

> Hello, I have participated in the codejam for the first time. My solution
> for the problem passed for test set 1 but failed for test set 2. But from
> the analysis it seems correct to me. Why it failed? Here is my code -
> https://gist.github.com/aagontuk/e5f4e7f30b2481d96a418882f8a2fa7e
>
> I don't know if this forum is appropriate for this kind of post, if it
> isn't I will remove this.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-code/e11188da-d990-45ba-8128-d5b7defd827b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CADZfUS5tAS2TfOfHK8%2BdQYmVEeVYTHAkXZS0HkFjjn4QAd0KsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to