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.
oh ye you are right my bad.
impossible
This won't actuall work properly. If you have 10 for example, all 3 options will be triggered
can someone explain what select is doing here?
This comment is hidden because it contains spoiler information about the solution
This test should be added to the default suite
Some currently valid solutions fail on it
test.assert_equals(to_underscore("123"), "123")
done.
The point of solving the issue was making it as short as possible.
Therefore, using the arrow function and removing the brakets were neccary.
It's clever, but not best practice at all :)
Das wäre in der Tat auch eine Lösung gewesen,
aber ich wollte ja eine möglichst kurze Lösung haben. :P
Davon abgesehen, sollte man die Funktion nicht auf meine Art implementieren, und auch möglichst auch ein reverse mit anschließender for-Schleife ;D
In this case he had to remove the given brackets so this actually took longer, but very clever!
my face reading this be like: [^_-]
No need for Abs, Pow is always positive here.
This comment is hidden because it contains spoiler information about the solution
return
is incorrect
This is a good practice, of course. But, if you hace a large code, maybe this could be dificult to read.
Loading more items...