Ad
  • Default User Avatar

    Thank you my friend

  • Default User Avatar

    On the test example "new int[] {-10, 1, 0, 1, 10}" the result should be -10 even tho -10 and 10 have the same amount of DIGITs and on the random test "new int[] {1308500879, -1807002044}" even tho 1308500879 and -1807002044 have the same amount of DIGITS...............

    i completely don't understand the logic of this kata since the numbers are not selected by the number of their digits and neither by the number of the CHARACTERS of each number (-10 has 3 characters over 2 character in 10 but they both have the same amount of digits....... but -1807002044 has 11 characters and 1308500879 as 10 characters even tho both have the same amount of digits).

    So in conclusion i don't understand at all what this kata wants and i don't think it works properly.

  • Default User Avatar
  • Default User Avatar

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

  • Default User Avatar

    still happens. i'll just try something else. thanks for the help

  • Default User Avatar

    it still comes up. Maybe it is my code but in my intelliJ compiler it works just fine

  • Default User Avatar

    expected: java.util.Arrays$ArrayList<[]> but was: java.util.ImmutableCollections$List12<[]>
    this is what i get as an error. Can someone please help?

  • Default User Avatar

    @fcr-- very funny clown

  • Default User Avatar

    i don't think you needed ">=" for the first two if-statements. "=" would have been enough. Other than that good job