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.
fixed
fixed. float64
Thanks. I fixed both.
Test case related issues:
The random tests aren't actually random, they're just a bunch of fixed tests.
Also:
This part is not tested: there are submitted solutions which passes despite never checking for this.
Please add sample tests.
Initial code: return type is
int
, but the example in the description shows a non-integral return value. Is itint
orfloat64
?it's ok in firefox as well now
That is strange, I see it as 1. Let me confirm with you on how I wrote it.
(three backticks)math
d= \sqrt{...}
(three backticks)
I still see two formulas. Using Firefox.
ETA: Opera doesn't have the problem
Oh now it's just one
Done. Thanks!
Thankyou. Its been taken care of.
The description has a few problems:
the formula is rendered twice for some reason
it is not possible that a distance is less than a speed; the units don't line up. please reword this to something strictly correct
Raising this as an issue to give yuou the chance to remove the rounding before it's too late.
Do not use rounding; use approximate equality.
See documentation on writing tests with floating point numbers.