What is wrong with my below solution for ABGAME?

https://www.codechef.com/viewsolution/21655714

Help me out here

1 Like

Hello @rooneyrama77,
Try this test case
A.AB.B
answer B
your code output A

3 Likes

thanks mate…but the issue was really with the if…else conditions.But your suggestion was helpful

1 Like

You can use stress testing with anyone accepted code in such a case. I have just tested your code against my accepted code and found this test case.

1 Like