Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Same thoughts. I'm moving on rather than hitting my head against a wall.
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.
Thank you my friend
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.
clown
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.This comment is hidden because it contains spoiler information about the solution
still happens. i'll just try something else. thanks for the help
Does that happen in Sample tests? Did you click
Reset
to reload them? Backup your code first.it still comes up. Maybe it is my code but in my intelliJ compiler it works just fine
It was a bug in tests, should be fixed now.
expected: java.util.Arrays$ArrayList<[]> but was: java.util.ImmutableCollections$List12<[]>
this is what i get as an error. Can someone please help?
@fcr-- very funny clown
i don't think you needed ">=" for the first two if-statements. "=" would have been enough. Other than that good job