leetcode - 446. Arithmetic Slices II - Subsequence
DescriptionGivenanintegerarraynums,returnthenumberofallthearithmeticsubsequencesofnums.Asequenceofnumbersiscalledarithmeticifitconsistsofatleastthreeelementsandifthedifferencebetweenanytwoconsecutivee