hi , thanks for pointing that out. I corrected the code but still
getting a WA. Any possible reasons?

code: http://ideone.com/bnz52

On Apr 13, 8:13 am, Tushar <[email protected]> wrote:
> 2
> 3
> 1 1 1
> 5
> 1 2 3 1 2
>
> O/P should be:
> 0
> 6
>
> Your O/P is
> 3
> 9

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" 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/algogeeks?hl=en.

Reply via email to