Ad
  • Custom User Avatar

    Same thoughts. I'm moving on rather than hitting my head against a wall.

  • Default User Avatar

    That wouldn't make sense. If I pass in (13) as the argument, 13 wouldn't be equal to 1 for the first If statement, and wouldn't be equal to 2 for the second If statement. We need the first two years to be unique because they're not like the other repeating number for the rest of dog and cat years.

  • 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
  • Custom User Avatar

    The best way is to use no rounding. Avoid floating point numbers, double, and any other numbers you'd have to round, or where you can lose precision.

  • 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

  • Custom User Avatar

    Does that happen in Sample tests? Did you click Reset to reload them? Backup your code first.

  • Default User Avatar

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

  • Custom User Avatar

    It was a bug in tests, should be fixed now.

  • 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