Getting the bounds for part 1
Some things we know about the problem:
- We can treat x & y as mostly independent variables
- When initial_y_velocity > 0, the velocity to reach y=0 again = -initial_y_velocity
- We can see this in the example below, where initial_y_velocity = 2.
- From y=0 we move 2 points to y = 2
- From y = 2 we move 1 point to y = 3
- We can see this in the example below, where initial_y_velocity = 2.
- From y = 2 we move 0 points because velocity is 0