LeetCode

Arithmetic Slices II - Subsequence

Click here for an explanation.