Java 1D Array (Part 2)

  • + 1 comment

    Replace the canWin() function in the sample code with this code and it will work. Make sure to leave the main() function in the original code too. I just tested it and it works.

    HackerRank solutions.