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.
This is a crazy mix of C# and Java code but actually it's neither of them.
System.out.println();
or (if you want to use C-like formatters)System.out.printf();
.Console.WriteLine();
(make sure tousing System;
). This method supports message format{0}
but no C-like printf format%s
Note also that in Java you cannot define methods with a lambda syntax.
my bad, i couldn't do it
I would add random tests.
This comment is hidden because it contains spoiler information about the solution
Right!!
using library takes all the fun and difficulty out of challenges
arrow
but does it stop being a function?
since it uses "const" and not "function"
that it
cool, you thought of all kinds of returns, but then you overload your function when it could only do one thing, the only thing it needs to do is turn positive into negative, positive is all those above 0, so
num > 0 return "some way to pass it negative"
, the rest can be returned the number itself, so just put areturn num