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.
Two important things I learned from this solution:
sorted
can take a set and make it a listany
function is a nice thing to have in mindGreat
gg
This comment is hidden because it contains spoiler information about the solution
@BayoAde but there are people voting for this to be an example of "best practices" even though the "clever" button is right there too.
Here are 2 similar examples you can copy into your IDE and see if it makes sense:
what is the purpose of "any" in the code above?
comments would be great to explain thought process, very clever though!
you don't get points for how good or bad the code is here. You get points for passing all tests
Your post here was visible in the homepage.
Sorry, but this is not a solution section? People can read it if they complete the task or want to see the solutions
Please do not post solutions in discourse. And if you must, then at least mark them with a spoiler. (Even people who have not solved the kata can see the comments here, just not the solution itself)
This comment is hidden because it contains spoiler information about the solution