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.
The instructions say "Each element has a unique energy requirement." but Shadow and Light are listed as having identical energy requirements. I suggest you delete the quoted line from the instructions unless you have a solution in mind, too clever for me, that relies on it's truth in which case please make it true.
Comparing floating point by adding an absolute epsilon to one side makes no sense at all.
If everything always have at most 1 decimal place, either represent it as
int
10 times the actual value, or useDecimal
. Deal with the floating point errors correctly.tests are now wrong:
this should ofc be true!
And your internal solution is wrong too: you have to use
>=
not>
(even if it's unlikely that it does a difference), and the test for negative values will not take into account the EPSILON, so this is not good too.This comment is hidden because it contains spoiler information about the solution