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.
Is this even correct? The midpoint
5.5, 4.5
is clearly inside the radical axis, but5.5*a + 4.5+b + c
is around0.636396
, not0
.The description forgot to mention that
a^2 + b^2 = 1
andc >= 0
. Without this there are infinitely many solutions of(a, b, c)
.Edit: Actually
c >= 0
is not the correct criteria, in random tests the sign sometimes differ. Anyways because of this both(a, b, c)
and(-a, -b, -c)
are valid solutions.Hi,
The kata is technically ok (at least at first glance), but that's unfrotunately a duplicate. We already have this kind of task, so you should unpublish it.
Cheers
Binomial expansion is a duplicate: https://www.codewars.com/kata/540d0fdd3b6532e5c3000b5b
There are no random tests. Actual tests are the same as sample tests.
What is a invalid expression is not defined. Why is
(5y+7)
invalid? It is because ofy
, or the lack of exponent?(Also, you didn't specify what should be done in this case.)
It's very obvious expressions like
42x^33^1
are not valid expressions. (Why are you concatenating 3 terms directly?)