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.
Arrow function, great solution!!
Previous solution was elegant, but very inefficient in terms of heap usage.
Not only is this not formatted correctly - it is neither "best practice" not "clever". Please avoid at all cost to produce code in real life like this. This is old, error prone, imperative style code that hides intention. This does not do Kotlin any justice.
use Generic)
i passed basic test but when i click attempt i saw this log in Kotlin.
expected:<..., [2627440, 2627448][, [2627496, 2627504]]]> but was:<..., [2627440, 2627448][]]>
Unfortunately, I'm taking time out on time random tests. it probably happens when searching for the prime number.