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.
Good point.
You can also remove this from description:
// I literally translate the Java code to Kotlin, without adding or removing things.
This seems like an appropriate translation, this isn't the only case where a direct translation from java has the object still in it even though it's no longer necessary. What is important in my opinion is that this Kata has, for better or for worse, been translated for Kotlin for 3 months and has yet to be approved, is there a way to just either delete the "unnecessary" lines and approve it or should I propose a whole new translation that only changes that?
As you only assign res once, it is better to use val instead of var
I know that dude, but I don't have anytime, I need to do homework from the University.
I can delete the unnecessary code.
Stop trash talking and do it yourself then.
But Kotlin isn't Java. Translating to another language, whether programming or natural, should carry not only meaning, but style as well. In this case there's nothing unnecessary in the Java version, it's just that Java is too verbose, but there is unnecessary code in Kotlin.
As I said, I translate from Java.
Literally just translate, I didn't change anything, neither a word.
Why
object Troll
istead of a plain function? (Even if it is an object, I don't see why it's calledTroll
.)This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution