Given an array of integers, find an equilibrium index such that the sum of elements at lower indices is equal to the sum of elements at higher indices. Perform this in O(n) time and O(1) space.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.