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.
OMG, could there be a way to calculate the distance once?!?
Could anyone add Python translation?
The random tests are still broken, and the error messages are still
wronguseless.The translation is of terrible quality. I wish I could post the issues on the kata discourse but the 200 IQ author blocked me:
Test.expect
instead ofTest.assert_equals
("actual" and "expected" values are swapped too)Thank you!
Could you please have a look at the fork of this kumite? This one got broken - I couldn't pick Python version so I created another one with tests inspired by Java tests.
This comment is hidden because it contains spoiler information about the solution
Why golf?
Just wanted to share, that I had found the correct formula about 10 hours of working on this kata before implementing this, because I couldn't implement it without recalculating distance between centroids at the time. Guys, keep fighting :)
This comment is hidden because it contains spoiler information about the solution
The test cases only uses one instance of
all_fibonacci_numbers()
, where as the referencing Kata uses a new generator for each test case so as to assert that its behaviour is distinct appropriately.Python Translation
Please, review