Ad
  • Custom User Avatar

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

  • Default 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...)

  • Default 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:

  • Default User Avatar

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

  • Default User Avatar

    Process was terminated. It took longer than 12000ms to complete // any solutions for that? my solution take 18ms more then they want to. :/

  • Default 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!

  • Default User Avatar

    be aware about percent. they are in form like 5, so be carefull if you wont use 0,05 instead.