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.
Passed all test cases except 1 with -> (p = 1000, percent = 2.0 and aug = 50).
Please fix this one so that I can submit my solution.
Got confused with options. This was my first comment btw. Taking note of it.
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.
Problem description is not satisfactory. I had to look at the test cases when 'Attempting' to figure out the problem to be solved.
Loading collection data...
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.
Passed all test cases except 1 with -> (p = 1000, percent = 2.0 and aug = 50).
Please fix this one so that I can submit my solution.
Got confused with options. This was my first comment btw. Taking note of it.
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.
Problem description is not satisfactory. I had to look at the test cases when 'Attempting' to figure out the problem to be solved.