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.
None of then languages have the latest version enabled, because changes in the JVM made the techniques used in the reference solutions break. This means the kata itself will be impossible to complete at some point when Codewars removes old JVM versions. Someone should replace the reference solutions with something that still works as of Java 17.
Regarding the Kotlin translation, are solutions like this supposed to be prohibited? Doesn't seem like 3kyu if it's allowed.
Kotlin translation: test feedback for expected and actual are reversed.
This requirement is not tested, and it should be either removed from description, or tested against.
My solution guesses the same number every time and it passes.
This comment is hidden because it contains spoiler information about the solution