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.
Actually it's twice :p
I should say this is essentially the same as tachyonlabs' solution. I simply reduced spacing and the variable $keyPressCount (too long imo) to $k. Not sure why the engine treated it as a different solution though...
Left a feedback of Somewhat satisfied. Mainly because the cases for conditions not being fulfilled I don't feel were fully explained (i.e. negative heights and such). Could maybe have benefitted from a bit more explanation. I had a case (at least I think I did) where the height was greater than the window but still negative. Had to do many "or" clauses in my return -1 if. Language was PHP (not that it would make a difference).
Other than that it was pretty good. I liked the explanation overall. Just the right amount of explaining the problem without basically giving the solution to the users. I should also note I was easily able to adapt to the negative height thing with the kata being as it is.
I really enjoyed this and will probably go through the rest of the series as a result.
Your teaching method is sound and fun to do!
Very helpful so far for teaching me how to use classes.
This thing kicked my a** for a while. Glad to have finally solved it. Also quite impressed with myself.
I'm additionally happy that solutions I've seen since solving it are just as complex as mine. Gives the ego a boost.
Great Kata!