We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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).
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Problem solving
You are viewing a single comment's thread. Return to all comments →
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).