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.
Nice! I didn't know about that. Powerful s#*t !
This comment is hidden because it contains spoiler information about the solution
And that is why using var is generally considered as a bad practice...
IDK, but i like it)
Mr.Obvious :D
You are right. I know you are not supposed to 'invent the wheel again' but this exercise is great to learn algorithmic thinking and complex concepts like recursion.
I think it's better to use this space to do what you wanted to do at first. This is a great exercise to understand and practice algorithms and recursion
Weeeee
Woooow!
Classes are just syntactic sugar meant to encapsulate code and abstract(hiding unnecessary details) code. The code would still work in this case without classes and by simply just writing the function
I definitely prefer readability, lol. I remember when I was starting out and hooked on code golf.
yeah that's the way she goes sometimes. i do these challenges just to nail into my brain the kinds of built in functions you can use, because I hate doing what you did and realizing I spent so much time for no reason. A good rule of thumb is that for 7/8 kyu problems, you generally don't have to reinvent any wheels.
negative numbers dont equal 0 so this works
using break is ugly
This comment is hidden because it contains spoiler information about the solution
Loading more items...