>
>
> If founding opposite, I have to clear the list.
>

Correct


> But I cleared between opposite chars (most left to right).
>

Yeap, that's your mistake there.


>

If AB is opposite.
>
> Input : XABC
>
> my output -> XC
> correct -> C
>
>
Yes! There it is! You get X, you get A, you get B, then clear, you get C.
Remaining: C


Regards,

Douglas

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