Ad
  • Default User Avatar

    .

  • Custom User Avatar

    Note:

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

  • Default User Avatar

    I think its because the test is written expecting the ball to pass the window completely not just meet the same height. I dont think that is what the description said but hey ho thats what the tests are going for.

    So your while loop should be (currH > window) that should sort you out.