Ad
  • Default User Avatar

    Oh I missed the "strictly greater than" in the description. Thanks for reminding.
    And it's considerate of you to notice the situation where floor(k) equals 0.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Might be a mistake though...
    For such case: h=30, bounce=0.5, window=15.
    The answer should be 2, I guess.
    Need to consider cases that the ball bounces back to the exact height of the window.(Just like the case provided above.)