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.
Thanks!
(Although I didn't seem to get any points for it. Do they go to the original translator?)
Done.
Done. Much simpler.
Not sure exactly what you mean here.
That was in the original translation that I forked. I have removed it.
Fixed. Also added final to both parameters.
Done
added. apologies for the delay. :P
And finally I'm done!!! Found a couple of bugs in solution logic (lack of extra loop).
The clue was extreme logging/printing when debugging move by move and even shot by shot!
But still of by one sometimes in the random tests... :/
It's seems I bumped into the same issue. I pass all the test except 2-3 random tests when the result is different by 1.
Two different solutions. But probably I implement the same bug twice. BTW, with the map you posted above. I think I don't understand the shooting timing properly or... I don't know(. And can't find the clue in the instructions and comments.
Could you recall the kata and give me some hint? Though 7 years have passed:(((
Yeah not really. I was not bothered fixing it after dfhwze solved the challenge this way, but now there is two of you so maybe I need to prevent this way of accidentally solving it.
No, this is actually an unintended typo :) Not the worst one you'd see in real JIRA tickets :)
EDIT: I fixed the typo.
I've had similar bugs IRL. It's good to be aware of such issues, nice kata.
Take a look at exeption messages:
This means that your gun sent an impulse with a voltage higher than can be tolerated by the target.
This means that the voltage between following impulses inceased instead of dropping.
Generally the advice would be like with debugging a normal kata: figure out what inputs make your solution fail, recreate them in sample tests, and adjust the oscilloscope (for example by adding prints of what it captures) to check for some unexpected behavior of the voltage modulator.
There are example implementations of
IStunee
in the sample tests: one is an oscilloscope/voltage meter, and one is a dummy sectoid. The contract is trivial, it reacts to single impulses emmitted by the gun. Are the example implementations in the sample tests not helpful or explanatory enough? You can modify them at will, an use them to monitor what your gun sends to its targets.6 years past still have problems in discription or tests (
Your task is to calculate the expected value of a randomly selected element from this matrix that is the average value that you would anticipate following a large number of trials where each element has an equal likelihood of being selected.
I hope I made the wording clearer
done
Loading more items...