Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Maybe the problem is not the performances of the loop/code, but an edge case the provoke an infinite loop...

    ("Edge cases"... g964 play A LOT with those...)

  • Custom User Avatar

    Exactly this same. My code runs 0.016 seconds for 20000+ bounces in my shell, anyone having any ideas?

    I use the while loop in which I multiply height by bounce.
    while height > window:

  • Custom User Avatar

    I have the same problem by using Python.Confusing...

  • Custom User Avatar

    Did you see the note:

    Note: Don't forget to convert the percent parameter as a percentage in the body of your function: if the parameter percent is 2 you have to convert it to 0.02.

    Anyway, thanks!