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.
Doesn't this return
" "
instead of""
for an empty string? I thought I tried this code and it errored ...Edit: I just tried it out and it didn't error. Never Mind. I guess it doesn't join on an empty string (
""
) because there is nothing to join.No random tests??
well it took me quite long to do it and while checking others solution,it looks like how easy it was but wasn't for me and now it is.
python new test framework + random tests are required. updated in this fork
Python new test framework should be used.
More details here and here
genius! I was stuck on this one for hours
I think the callback makes the code is longer
#THIEVES118
this function, although returns a string output, there is still spaces at the begining and of the string.
yeah should be defensive
integers do not involve decimals... what if someone kept a decimal as an argument.
what do you think about flooring the return value?
it can get more compact if you turn it into an arrow function
nice!
For some reason, I thought the toString() method was necessary at the end of this one.
Since you do not do anything with variable afterwards (besides returning it), there is no need to assign the result to a variable.
Loading more items...