- Prepare
- Algorithms
- Game Theory
- Stone Piles
- Discussions
Stone Piles
Stone Piles
+ 0 comments Hi, I find the blog informative, though... nice work... do share such information. I’ll bookmark your website. Our website nirogayurved is an Ayurved-related website and on our website, you will get all information related to piles and the cure of ayurvedic medicine for piles Problem.
+ 0 comments Here is Stone Piles problem solution in Python java C++ and C programming - https://programs.programmingoneonone.com/2021/07/hackerrank-stone-piles-problem-solution.html
+ 0 comments 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.
+ 1 comment In the sample last test case:
1 8 The output says BOB win When Alice start: 8 -> 1,3, 4 Bob cannot break any and should loose Is it?
+ 1 comment I'm done with the code and I got msg
"Congratulations! 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 1 1 20 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?
Sort 20 Discussions, By:
Please Login in order to post a comment