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.
Interesting, I used an if else clause.
Hahahaha same
Elegant oneliner!
But sometimes ("in real life") - short route is much longer than the "muddy" one.
This comment is hidden because it contains spoiler information about the solution
This is pedantic but the description does say:
Although the test cases doesn't test for the amount of parameters, this solution would technically be incorrect as it accepts 0 to N parameters.
Thuis a brilliant codewar
nice way to keep it simple and understandable
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
i feel dumb now
So THAT'S how to squeeze it onto one line! Niiiice :-)
OP solved it, closing
That is genius!
I forgot about min max and get it with if else. Great solution
Why wouldn't you use a ternary operator?
Loading more items...