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.
i like this one, clean with easy methods
This comment is hidden because it contains spoiler information about the solution
Damn, i missed the opportunity to avoid the math package ... xD.
Same here. Based on this description and the expected outcome of the examples, I haven't got a clue what to add up.
I'm a mathematician, mind you.
even after using round and log, the tests are expecting wrong values.
the easyLine(4) should be 3 and not 4, because round(2.77) = 3
Expected: 8, instead got: 5
Expected: 16, instead got: 9
Expected: 22, instead got: 12
Expected: 24, instead got: 13
again, both examples and tests are wrong even when using round + log
Did you read the description?
(at the bottom of description)
Tests and Examples does not match the instructions.
Instructions = sum of the squares of the binomial coefficients on a given line = sum of entries in row of pascal triangle = 2^n
What the hack is going on?
And why examples are inconsistend as well??
easyline(4) => 70
easyline(4) => 4
shouldnt easyline(4) => 2^4 = 16 ???
If I understand you correctly try b) or c).
IMO this is a math puzzle and not really coding, but that goes for like +80% of the kata. Should rename this site Mathwars.
Hey there! I need a suggestion. I'm running in this problem: The factorial numbers are to big and i get rounding errors. What can I do to fix this? Should I try to... a) use unsigned long integers b) find an analytical solution to the squared binomial coefficient problem c) something different. I dont calculate the factorials flat, I only ceep the therms that dont cancel out and i stay on the left side of the triangle (The right side of the trinangle is defined by symmetry to avoid big factorials). Thanks for your help!