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.
before, description edited
I would suggest removing the hint altogether as very few of the answers are in that form.
Wow, thank you very much, now i understand where is the problem, i'll fix it immediately
//Update: Fixed it.
Before i removed input validations, there was a condition where, if it's below 20%MHR it would be zero, and i didn't change the final solution because i wrote test cases in a manner where always is gonna give >=20%MHR, so i find strange what you say about "Tests involve cases where IHR < MHR * 20%".
int HR = new Random().nextInt(HRM20/100,HRM)
//HRM20/100 it's the origin parameter, so it can be the minimum parameter.
i looked the other test cases, but i think none of them are wrong, but maybe i overlooked it, if that's the case, please point me out the problem.
//Sorry for the strange english, i can read fine, but i don't write too much
should be fixed, could you verify?
Wow, and that didn't get spotted when I made the pairs version of this. What a bummer.
I guess I'll just un-publish it now.
approved
Done, thank you!
Done. Can you check?
I could smell from a distance
d2
the author didn't want to change the small issue in test generation, so they decided to change a perfectly fine specification instead. This truely has been an example how to take a really good idea, and keep messing things up to eventually get the kata retired (maybe). If you can still turn things around, I'll be happy to update my vote.that is sooo lame, I no longer endorse this kata :)
Sorry for the misunderstanding!
I've changed the description, so now d2 is not the distance from the nearest cliff, but just the distance from the person to a cliff.
did you even read the comment before resolving it ..
According to the description, d1=distance between cliffs, d2 = distance from person to nearest cliff
So, d2 < d1.
This is the case in all tests.
Loading more items...