Question DSA-ARR-0074
HardWhat is the 'equilibrium index' problem solved with?
- A.
A stack
- B.
Total sum and a running left sum: index i balances when left = total − left − a[i]
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
What is the 'equilibrium index' problem solved with?
A stack
Total sum and a running left sum: index i balances when left = total − left − a[i]
Sign up free to see the answer and a step-by-step explanation.
Binary search
Sorting