Ad
  • Custom User Avatar

    Had the same problem, fixed it in the following way.

    Your solution doesn't account for rounding. Eave time you loop you should round curr to an integer.

    P.S. you can just use p0, you don't have to make curr = p0.

  • Custom User Avatar

    Kata's description is fine, it tells you exactly what you need to do. If you have a suggestion about how to improve it, raise a suggestion, not an issue.