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.
Java translation
TypeScript translation
CoffeeScript translation
There seems to be some issues regarding the expected values of the tests.
Actually, the solution for the equation is
$a=b=3$
, so there is a real solution for$a^7+b^7$
The solution for these equations are
$a=\frac {5 + 3 \sqrt 5} {2}$
and$b=\frac {5 - 3 \sqrt 5} {2}$
, or vice versa, and$a^7+b^7=235625$
, not$1576.6..$
Task features symmetrical equations, but sample tests have different output for inputs (1, 2) and (2, 1).
There's no clear direction as to what
a
andb
should be, leading to multiple possibility for their value. For example, in the case ofx = 6
,y = 41
.In your result, expected is
12567.813323059147
(I don't know what thea
andb
for that).In my result, I got
a = 6.3911649915626345
andb = -0.39116499156263407
which qualifies the two equations in the beginning of the description. However, when I try to evaluatea**7 + b**7
, it results in871144.5028025277
.Why is this a duplicate to another beta kata created just yesterday? Do you two know each other?
Initial code is infuriating. Why
convert_to_list(obj)
andconvert_to_int(obj)
? Can't you just put the type of the input as argument name? (aslist_
orint_
sincelist
andint
are built-ins)One of the test in sample tests asked for wrong answer.
there should be no examples with leading zeroes for
convert_to_int
for consistency with the other way. i.e.,23
can technically return[0,0,0,2,3]
trivial list filtering/concatenating is not very novel imo
This comment is hidden because it contains spoiler information about the solution
Very similar to this one except the linked one requires segmentation of characters into given portion whereas this one requires incrementing it sequentially
There is only +-1 coefficient before x in random tests
This comment is hidden because it contains spoiler information about the solution
Loading more items...