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.
my first thought exactly, should be called something like:
do_i_make_the_pump()
. or reverse the test casesjust finished the javascript version, i really enjoyed it. i got stuck for a whil at the random bit tests because i was bit shifting and bits fell over (becoming negative value) so be warned, use pow instead :).
This comment is hidden because it contains spoiler information about the solution
The c# kata works fine and is very explenational but the javascript kata is very useless and doesn't even seem to work (using the exact same logic as C# kata)
For me the example was fine when i tried it. i will check again
Thanks for your example. I checked why it wasnt working, at its because 8 decimals rounding (and even 7) was just too much for ruby. i Changed it to round to 6 decimals on the random tests. now it seems to be be working better
This comment is hidden because it contains spoiler information about the solution
I approved it, thanks :)
awesome :) i approved them.
I changed it to number, does this look better?
Yea sorry, i was working on the fix but it wouldn't want to publish, it should be resolved now.
Could you please try again and tell me if it doesn't work? :)
its mathematically easier: a bounce = 2 passes by a window. if you do a while loop you will evaluate before the first bounce always resulting in a +2, so you start on -1 to be mathically correct. otherwise you should have done a do{} while loop instead.
The task description could be a bit clearer, but the examples make up for it.
From a mathematical standpoint, returning zero is not that bad. Only if the calculation really was wrong you should throw an error (inserting letters for example)
Don't try this Kata!
The tests are broken!!!!
(someone changed the tests so now you can't complete it anymore)
Loading more items...