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.
I'm sorry! First, I combined all the tests into one. Secondly, my mistake was that I did not understand that it was necessary to reduce numbers when dividing integers.
The length of my code is 100 lines. I was surprised when I saw a short solution from other people(as always). A good kata, thanks!
Kata does not work correctly in Kotlin. Example,
a = arrayOf(intArrayOf(1, 2), intArrayOf(2, 9), intArrayOf(3, 18), intArrayOf(4, 24), intArrayOf(6, 48), intArrayOf(1, 2), intArrayOf(1, 3), intArrayOf(1, 4), intArrayOf(1, 3), intArrayOf(5, 3))
Result should be [307, 72]
But in kata [6, 3]
The author, please fix it. Can't complete kata!