yeah, but that only works in easy and medium difficulties
yeah... I realized that after I wrote it. whoops.
This isn't the equation for factorial ; this equation is:
1 + 2 + 3 + ... + n = n * (n + 1) / 2
This is called an arithmetic progression: http://en.wikipedia.org/wiki/Arithmetic_progression
I always forget the equation for factorial. This is a good reminder of it.
My solution passed all of the tests in the Kata, and is what I submitted. The instructions are incomplete, like I've already said in my first comment. Are you saying that is the whole point of your Kata? To be incomplete?
This comment is hidden because it contains spoiler information about the solution
Yes, I had the same issue. It was because of the placement of the TODO comment.
Loading collection data...
yeah, but that only works in easy and medium difficulties
yeah... I realized that after I wrote it. whoops.
This isn't the equation for factorial ; this equation is:
This is called an arithmetic progression: http://en.wikipedia.org/wiki/Arithmetic_progression
I always forget the equation for factorial. This is a good reminder of it.
My solution passed all of the tests in the Kata, and is what I submitted. The instructions are incomplete, like I've already said in my first comment. Are you saying that is the whole point of your Kata? To be incomplete?
This comment is hidden because it contains spoiler information about the solution
Yes, I had the same issue. It was because of the placement of the TODO comment.