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.
Why are there test cases with more than two different numbers? Doesn't the description say they will all be equal except one? Java version test:
input:4.0 4.0 4.0 3.0 4.0 4.0 4.0 4.0 5.0 5.0 5.0 5.0 4.0 5.0 5.0 5.0 6.0 6.0 6.0 6.0 6.0 5.0 6.0 6.0 7.0 7.0 7.0 7.0 7.0 7.0 6.0 7.0 8.0 8.0 8.0 8.0 8.0 8.0 8.0 7.0 3.0 3.0 2.0 3.0 3.0 3.0 3.0 3.0
expected:<2.0> but was:<3.0>
ok I see now
Ok thanks. Maybe the kata should be reworded to reflect that they DO have to be.
Like Muhamor, I'm wondering why the second of the "basic tests" (kotlin version) should have a least common denominator of 34060. 40 does not go into that evenly. Shouldn't it be 68120?
I'm puzzled by this one too... on the second of the basic tests, shouldn't the least common denominator be 68120? As Muhamor pointed out, 40 does not go into 34060 evenly. (kotlin version)
this was an inspirational solution to look at... so clean and so great! both the logic and formatting - I think I even like splitting the ternary over three lines. well done