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.
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
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 ???
of course not, :D hahaha, what a prank
what programming language is this?
this looks very nice
I highly recommend using curly brackets
{ }
for theif
block for better readability, so the code reviewer won't be confused, like for example "why there are two returs?" for this sample code.nice and creative
finally a solution that separates prices from amounts of food, so it's easier to maintain when price or amount changes
lol, people are really creative and funny with their solutions
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
nicely written code