【Lintcode】1793. Balanced Sales Array

題目地址: https://www.lintcode.com/problem/balanced-sales-array/descriptionhtml 給定一個數組 A A A,求某個下標 k k k使得 ∑ i = 1 k − 1 A [ i ] = ∑ i = k + 1 l A − 1 A [ i ] \sum_{i=1}^{k-1}A[i]=\sum_{i=k+1}^{l_A-1}A[i]
相關文章
相關標籤/搜索