Try to figure it out yourself with an example:
for input [2, 0, 4, 2, 2, 3, 0, 0, 3, 3]
[2, 0, 4, 2, 2, 3, 0, 0, 3, 3]
correct
100 100 1300 1400 1500 2100 2100 2100 2700 3300
your
100 100 1300 1400 1500 1800 1800 1800 2100 2400
You need to fix a little your calculation.
Not a kata issue, your code is wrong, use Question label for that. You're handling levels wrong, check again the kata description.
Loading collection data...
Try to figure it out yourself with an example:
for input
[2, 0, 4, 2, 2, 3, 0, 0, 3, 3]
correct
your
You need to fix a little your calculation.
Not a kata issue, your code is wrong, use Question label for that. You're handling levels wrong, check again the kata description.