We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- All Contests
- HourRank 16
- Candy Piles
- Discussions
Candy Piles
Candy Piles
Sort by
recency
|
32 Discussions
|
Please Login in order to post a comment
I think it should be like this, then you should understand: After doubling the second pile, the happiness factor becomes 6 ; this is maximal, because the happiness factor would remained at 6 if Alice now chose any of the piles to double.
Can anyone explain this testcase input: 9. 10 4 10 20 20 30 30 7 8. output: 7 1
CAN ANYBODY TELL ME WHAT IS THE PROBLEM IN THIS CODE
I can't understannd this ques plz explain in java guys
@Teamhackerrank TC #3 and #7 have wrong outputs please correct them.