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.
amazing
This comment is hidden because it contains spoiler information about the solution
I think it's clever so I vote clever :D
Since I don't really have a proper reference for what 'best practice' would look like.
Clever means for me that it is an approach I couldn't even conceive of,
or that combines aspects of programming in a way that is new to me.
Everything in Python is an object hence creating more objects than you need is slower.
However accessing an item by index in a list is slower than accessing the item directly. So if you need to access the item many times...
Maybe it would be interesting to find out the actual answer to this question with timeit.
In that case, it should be voted best practice IMO. I came up with the same solution too.
8 numbers not the sum of the numbers
you have to take out the length not sum
I believe school math and careful reading of description is enough for this kata
maybe a pen and a paper will help too
or just use regex :)
Note that the initial height is set to upSpeed and height is compared to desiredHeight before the night falls.
Agreed.
I think it is voted clever because it uses many standard code practices, it is a one line, and it is pretty efficient too!
That's a really nice reply Jesse!
I wish every programing related place would be like this:)
Hunahpu Just hold on and keep trying! You can do it! :)
Loading more items...