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.
that's not correct.
a
starts as the string in front of the variable.for example in
"(x+7)^12"
it is the empty string""
, in"(-x+7)^12"
it is the minus sign"-"
, and in"(0x+7)^12"
it is the digit zero"0"
.in the second line this string is transformed to the numerical value. so for example
""
turns into1
,"-"
turn into-1
and"0"
turns into0
.now if
a
is0
then the variable isn't relevant and we only have to compute7^12
.How else would you go about polluting prototypes?
string.toLowerCase()
string.toUpperCase()
string.toJadenCase()
I don't see what you mean. How could someone come up with the same answer without cheating?
This comment is hidden because it contains spoiler information about the solution
But it's still not consistent.
If I understand you correctly you say that
curryPartial(curryPartial(double), redundant_parameter) == result
is a valid test casebecause
curryPartial(double, redundant_parameter) == result
is a valid test case.But with the same reasoning
curryPartial(double)(redundant_parameter) == result
should also be a valid test case. And that's something most current solutions couldn't cope with.In Python 3 the division of two integers (int / int) results in a float. And floats cannot represent big integers exactly.
If you need the exact results you can use integer division (int // int) and integer modulus (int % int) instead.
Difficult to say in general. I think it depends on your solution.
Usually when you have trouble with the precision of big numbers in python, you accidentally used floats.
Go to "Account Settings" and write the name of your new clan into the "Clan" field.
Go to "Account Settings" and write the name of the clan into the "Clan" field.
You forgot
self
in the parameter list:def add(self, a, b)
double
is a function without parameters, socurryPartial(double)
should beresult
This comment is hidden because it contains spoiler information about the solution
The description doesn't fully specify the width of the first column.
Just because someone has an opinion doesn't mean it's debatable.
1 + 6 + 7
is14
. There is no room for people expressing their "creativity and come up with different approaches."This doesn't make sense though. The kata description says that first argument of
curryPartial
is a function.Loading more items...