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):
return s_msg[ n < 10 ];
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
Loading collection data...
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