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.
This comment is hidden because it contains spoiler information about the solution
@integral: I had a similar issue (in Clojure). The problem was, that my return value was not 1.2125, but something like 1.212500000000000001234 (which still was printid out like 1.2125).
So, you can try the following: printf("%f", going(n) - 1.2125), and see if you get anything else than zero.
Did you read the posts of @DrGre below? I think there could be a CW bug somewhere but 54 guys passed the C++ kata...
Thanks to "integral" calculus!-))
Never mind that. I thought when you mentioned calculus, you were talking about differentiation/integration.
Googling the definition made it make more sense -
a particular method or system of calculation or reasoning.
My bad.
What do you propose?
Typo?
There are several ways to determine the precision of the calculus but to keep things easy
I'm getting the same error as others in C++.
Any ideas?
edit: I fixed it.
I'm not sure what I'm doing wrong.
The Binomial Thereom/relationship between Pascal's Triangle and combinations is what I tried to do. One number overflows so I end up with a wrong answer.
I've changed everything to std::uint64_t, but it still doesn't work.
Raw results before round() and log():
After:
I pass everything else but the one I mentioned above.