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.
i agree, although this solution may appear as clever it doesn't resemble the best practices.
The conditions are reversed, while not exactly the same the function is continuos when n or m are 0 so, the result is the same.
I think here sould be 'OR' instead 'AND'. It said in task`s condition..
Just what I came up few seconds ago...
Maybe not the most efficient but, I mean, first passing all the tests, is what matters most :). Improving is another step though.
Clever! I added an extra line I suppose
Use spoiler flag next time, your post was visible in the homepage.
This comment is hidden because it contains spoiler information about the solution
Yes, but this is a kata, not production.
Tip: Consider using a positive test for cleaner code:
return words == null ? null : String.join(" ", words);
This approach is more intuitive and aligns with best practices.
Wow, how did you think up this? Spot on.
its cool hehehe
great!
do you teach. you made than very logical and understandable. thank you
good ol ternery operator man. I always feel a sense of "oh yea i could of just done that" everytime i write an if/else statement, than come here to see others solutions.
You know that trolls starve when not fed? I do not know if the OP is a troll or not, but whenever you think you see one, just don't feed it. You reply, you lose.
Loading more items...