Ad
  • Custom User Avatar

    if you only want one statement run after the condition, the curly braces is not necessary

  • Custom User Avatar

    assertArrayEquals(new int[]{2,3,4,1,5,6},
    LeagueOrder.computeRanks(6, new int[][]
    {{0, 5, 2, 0},
    {1, 4, 2, 2},
    {2, 3, 1, 3},
    {1, 5, 0, 0},
    {2, 0, 2, 1},
    {3, 4, 3, 1}}));
    I think the teams rank 5 and rank 6 have same rank 5 cuz both of them are: GD:-2 && P: 1