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.
This comment is hidden because it contains spoiler information about the solution
first I was trying to do like you but my head started to spin :) Nice and clean, great job. I wish i could just put j == endArr to end my troubles but i just deleted everything and started with different method...
so cool to have 2 separate counters, my brute force method is lacking this brilliant idea :)
first i was like how does it count rebounds and then i saw "+2". Beautiful!