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
This comment is hidden because it contains spoiler information about the solution
Very effective formulation given the description of input! Thank you!
This has to do with floating point rounding errors. The formula can be rearranged a little bit so that the rounding errors have less impact, I believe.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I suppose you don't read the note at the bottom of the page:
Beware when you post issue:-)
Well, I assume that I have to repost the issue rather than to reply under the old one. Here's the explanation.
R:
testing(7, 8)
testing(13, 16)
testing(17, 22)
Python:
testing(easyline(7), 3432)
testing(easyline(13), 10400600)
testing(easyline(17), 2333606220)
testing(easyline(19), 35345263800)
Well, here's the explanation.
R:
testing(7, 8)
testing(13, 16)
testing(17, 22)
Python:
testing(easyline(7), 3432)
testing(easyline(13), 10400600)
testing(easyline(17), 2333606220)
testing(easyline(19), 35345263800)
To post an issue believing is not enough:-) Give some explanation...
I beleive the testing codes with R are incorrect though there are 181 people on the done-list with R. Plz check this.
9 guys passed the R kata, not that much but enough to say there are no errors in the tests.
81 guys passed the Python translation and 21 the Ruby one. Python and Ruby give the same results as my R solution for your two cases.
The number of digits of the numerator for your two cases have exactly the required length.
This comment is hidden because it contains spoiler information about the solution