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.
yes, basically recomputing smallest string length at each step.
o(n^2) complexity.
Hello fu7zed,
Thanks!
nice explanation
Dividing the speed by 5 should be a valid answer too (instead of multiplying the distance by 5).
The tests shouldn't rely on a rounded value to 15 decimal spots.
If the two fighters do not have the same health/attack ratio, bigger ratio is sure to win.
But if both ratios are the same, they would lose in the same round : first attacker wins.
was this test a random one ?
given [n, m]
n the expected length
m the maximum value
to me the string is valid