why (3, 5) is true?


  • 0
    C

    I was trying to understand the question and tried a simple testcase: (3, 5), the OJ output is true. number pool is [1, 2, 3],
    1st chose 1, 2nd player choose 2/3, 1st player lose;
    1st chose 2, 2nd player chose 3, 1st player lose;
    1st chose 3, 2nd player chose 2, 1st player lose;

    how could the first player win?


  • 0
    S

    @cris
    1st choose 1:
    If other choose 2, 1st choose 3 and wins.
    If other choose 3, 1st choose 2 and wins.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.