Search
⌘K

Leetcode 2574. Left and Right Sum Differences

For each index, compute the absolute difference between the sum of elements to its left and the sum to its right; this is typically solved with prefix/suffix sums in linear time.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.