Welcome to
hgn's note
LeetCode: Pivot Index
17 - 06 - 2023
Algo: Pivot index - I change from O(n2) to O(n) thank to LeetCode answer. The key is to calculate total sum first.