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.
Counter game
Counter game
Sort by
recency
|
397 Discussions
|
Please Login in order to post a comment
Python:
Hi. Can anyone explain me a case of 5 (not considering any algorithm or coding, just as you play it real with a friend)? They give example of 6 as this: Turn 1 - Louise: 6 - 4 -> 2 Turn 2 - Richard: 2 -> 1 WIN Clear.
Then for 5 Turn 1 - Louise: 5 - 4 -> 1 WIN Louise should win, right? As he first got 1 by given manipulations. However, the suggested result is Richard. How come?
Hello friends! This my Java Solution for the challenge. If anyone wants to chat about programming or other things, contact me!
https://github.com/eduardocintra/hacker-rank-solutions/blob/master/src/br/com/eduardocintra/medium/countergame/CounterGame.java
Fun little bit-fiddling
Python