Ad
  • Custom User Avatar

    n = 69 : expected 30n to equal 8n - is too little number
    n = 85853 : expected 42906n to equal 26n - is too little number
    For n = 428708124794396147 : expected 107177031198598953n to equal 88n - is too little number

    even for optimal game

  • Custom User Avatar

    Next time, please use the question label for a question, the issue label is reserved for problems with the kata itself.

    And to answer your question : keep in mind that both players play optimally. For example, with n = 69, Bob can constrain Alice to take only one card each time it is her turn. The beginning of that game is:

    • Alice takes 1 card
    • Bob takes 1 card
    • ....
  • Custom User Avatar

    Random Tests
    Small Tests
    For n = 69 : expected 30n to equal 8n
    Completed in 1ms
    Medium Tests
    For n = 85853 : expected 42906n to equal 26n
    Completed in 1ms
    Performance Tests
    For n = 428708124794396147 : expected 107177031198598953n to equal 88n
    how is it possible?