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 wow
Using recursion and join in a place I did not expect
Please use spoiler flag next time.
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 is terrible, it has O(n^2) complexity.
genius++
Wonderful! Amazing!
That's what the "Clever" rating is for, code that is more creative than efficient. I think we could all benefit from bringing more creativity to the programming space
Genius, my goodness. Espetially the recursion that only happens if the list changes
This comment is hidden because it contains spoiler information about the solution
oooooohhh tysm
聪明的方法,我竟没想到在这里可以用 字符串的替代 。我喜欢这个方法。
今天又学到了!
Wow this is such a different way of doing it using string logic. One of my favorite solutions here.
This is very inefficient
The
return
line of this function will call the function itself as needed until a condition is met. This is known as recursion. Here's an alternate source.Loading more items...