leetcode 413. Arithmetic Slices

1.題目 A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same. 等差數列的定義爲:至少三個數字組成,兩兩相鄰的數字之差相同。 等差數列,例如:
相關文章
相關標籤/搜索