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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.