• Custom User Avatar

    I don’t see your code, so I can’t say what’s wrong. But if you provide an example, then I can describe it in details.

    The most common mistakes:

    • forgetting about the remainder of the lines after cleaning
    • calculate result after cleaning, and not before
  • Custom User Avatar

    I see that the problem appears after a level is increased, but I don't know the reason. In my version I have a sum var, which is the sum of the values in the array (I'm adding new values in the for cycle where I compute the points). If the sum is greater than or equal to ten, I subtract ten from it and increase the level variable by one.

  • Custom User Avatar

    Follow the example and find the mistake by yourself. Write, please, if it doesn’t help.

    for input [2, 0, 2, 4, 4, 0, 4, 3, 0, 0, 0, 1, 0, 0, 2, 4, 0, 1, 3, 4, 2, 0, 2, 1, 4, 2, 0, 0, 1, 3, 1, 4, 4]

    right yours
    0	0
    100	100
    100	100
    200	200
    1400	1400
    2600	2600
    2600	2600
    5000	3800
    5600	4100
    5600	4100
    5600	4100
    5600	4100
    5680	4140
    5680	4140
    5680	4140
    5980	4440
    9580	8040
    9580	8040
    9700	8160
    10600	9060
    15400	13860
    15800	14260
    15800	14260
    16200	14660
    16360	14820
    21160	19620
    21660	20020
    21660	20020
    21660	20020
    21860	20180
    23360	21380
    23560	21540
    30760	27540
    
  • Custom User Avatar

    Note that after increasing the level, the total number of cleared lines is not reset.

    That.

    Not a kata issue.