Sort 18 Discussions, By:
Please Login in order to post a comment
With test case: 6 piles.
If Alice divide to: 2,4 . So She will win.
But if she divide to: 1,2,3. So she will lost.
In the sample last test case:
The output says BOB win
When Alice start: 8 -> 1,3, 4
Bob cannot break any and should loose
I'm done with the code and I got msg
You have passed the sample test cases. Click the submit button to run your code against all the test cases."
But when I submit the code, I got an error for other testcases and the input for that testcase is
and for that from my code I got "BOB" winner but in that testcase it says "ALICE".
So can anyone please tell me, what's wrong with that?
plz give solution in C