Ad
  • Custom User Avatar

    C#: method name should be PascalCase (Please refer to implementation of backward compatibility here )

  • Custom User Avatar

    C#: method name should be PascalCase (Please refer to implementation of backward compatibility here )

  • Custom User Avatar

    Description should be language-agnostic

  • Custom User Avatar

    You can round up the distance to 10 decimal places

    "You can" is not the same thing as "you must". Also, it's not clear what whether "round up" is supposed to represent ceiling or regular rounding.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    According to the test description:
    "Points inside list don't have to been sorted (any order is valid)."

    In Golang, the tests failed when I provided the elements in "any order".
    Noice how [3,1] and [2,1] are swapped, as are [1,2] and [3,2]. Otherwise, the arrays are identical.

    Expected
    <[][]int | len:8, cap:8>: [[1, 1], [2, 1], [3, 1], [1, 2], [3, 2], [1, 3], [2, 3], [3, 3]]
    to equal
    <[][]int | len:8, cap:8>: [[1, 1], [3, 1], [2, 1], [3, 2], [1, 2], [1, 3], [2, 3], [3, 3]]