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
Yours is more readable than mine, but my logic is a bit cleaner.
Sublime
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!
Similar logic, but much cleaner than mine. Nice!
OK
You could understand the variable months like this, months=1 is the end of the first month, months=2 is the end of the second month, ..., month=0 means you are going to buy a car.
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
Loading more items...