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.
First of all, WHY Strings and not just numbers? For a 7 KYU this constraint just causes way too much problems with padding 0's at the end (At least when working in Haskell).
Second of all, the rounding and float imprecision cause additional problems. I have 5/10 Tests passed, with two tests not passed because of the missing end zero and the other because of some weird imprecision (eg. I get 2.39, actual should be 2.40 or 2.38).
This may be debatable, but if the ball is starting at the same height as the window the result should be 1 and not -1
edit: especially since there's a possibility that the resulting height after a bounce is the same as the height of the windows, thus falsifying the result