• + 1 comment

    Problems with similar (vi) values are similar in nature. v is a list of integers (Example: v[0] = 5, v[1] = 4, v[2] = 7) as it in first test. That means the first problem (v[0] = 5) differs from the second problem (v[1] = 4) by 1 (5-4=1) and the second problem (v[1] = 4) differs from the third problem (v[3] = 7) by 3 (4-7=3) regardless the sign (positive or negative).