Ad
  • Default User Avatar

    added by someone

  • Default User Avatar

    Agreed. Also, in Go a return type of (int, int) would be more idiomatic than [2]int (although more cumbersome to test)

  • Default User Avatar

    Test4 and last test print the same but these two cases are different. To avoid errors I will suppress my printing so that you can print and see yourself.
    Re-read carefully the description (think of possible edge cases, see the remarks). Be sure that there are no errors in the tests. Cheers.

  • Default User Avatar

    I am sorry but I don't see any problem. Are you sur that is the same tests?