Ad
  • Custom User Avatar

    This is great. Great code, thank you!

  • Custom User Avatar

    @Chrono79 Thanks Chrono79. Typical me. I really should try to read questions more carefully. Thank you :)

    So I'm fully convinced and a fun kata for sure. But do you guys agree with the constraint!? Wouldn't it make more sense to include the same height cases? I'm just curious, not trying to justify my instinct or whatever :). Or is it just me who'd think that way hahaa

  • Custom User Avatar

    The ball can only be seen if the height of the rebounding ball is strictly greater than the window parameter.

  • Custom User Avatar

    For the test case 2, 0.5, 1, I was taking it as seen 2 times because when it bounces up to 1m, mommy will see it because mommy at 1m!

    No? Pleae convince me.

  • Custom User Avatar

    Tried to increase efficiency, but I don't think it is any more efficient haha.