Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 171 Bytes

File metadata and controls

14 lines (7 loc) · 171 Bytes

8.求出数组中连续数字的和值

举例

// 伪代码
[2,3,3,3,3,9,9,1,2,6,6,6,6,6,7]

上面这个数组相同连续数字的和为 6+6+6+6+6 = 30