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.
Using a deterministic equation as a solution for a contrived problem would pass the strictest of PR code reviews. Sorry not sorry.
there is best way to write clean code and this not one of it ;
its static one
be sure to mark my reply down again
It's all a math problem.
It's Not A Math Problem!
very clever man
The trick with implicit conversion (boolean to integer):
Use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
why 2 ?
It's very simple, although it contains a magic number which isn't great practice unless if it's self-explanatory. The 3 here is self-explanatory but the 2 is not. Things like this should be labeled with a comment or set as a variable.
i mean yea, how i didn't think about it. Any books recomendation for algorithms?
I didn't understand what does that mean
lol.. yea, I was wondering the same thing! haha. oh well, I just added 'y' to my list of "vowels" to satisfy this kata
haha.. nice :P