Halloween Sale
Unlock all premium questions for over 30% off
Split Array with Equal Totals
Easy
Question
You are handed an array made up of positive integers. Choose a position to cut it so that the left part and the right part, each a contiguous run, add up to the same total. Index i means elements 0..i form the left part and elements i + 1 onward form the right part. Return the chosen index, or -1 when no such cut exists.
...
Asked at:Meta
More Meta interview questions
- Word Pattern Matchingeasy
- Phone Keypad Letter Combinationmedium
- Find Shortest Distinct Prefixmedium
- Build Longest Concatenated Palindromehard
- Minimum Coins to Cover All Amountsmedium
- Find Median In Large Unsorted Arraymedium
- Merge Two Sorted Interval Listsmedium
- Count Distinct Elements in Each Windoweasy
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.