Skip to content
We areTOP 1%

Split Array Largest Sum

HardLeetCodeBinary Search on Answer
Solve on LeetCode(opens in a new tab)
Track your progress
First attempt
Re-solve after a few days
Final pass before interviews
Approach hintTry it first, then reveal

Binary search the largest allowed piece sum; a greedy pass that starts a new piece whenever the running sum would exceed it tells you how many pieces that limit needs.

More in Binary Search on Answer

Binary Search on Answer questions
#ProblemPlatformDifficultyOpen1st1st Visit2nd2nd VisitRevRevise
1Building an AquariumCodeforcesEasy 1100Solve Building an Aquarium on Codeforces (opens in a new tab)
2Poisoned DaggerCodeforcesEasy 1200Solve Poisoned Dagger on Codeforces (opens in a new tab)
3Koko Eating BananasLeetCodeMedium Solve Koko Eating Bananas on LeetCode (opens in a new tab)
4Find the Smallest Divisor Given a ThresholdLeetCodeMedium Solve Find the Smallest Divisor Given a Threshold on LeetCode (opens in a new tab)
5Capacity To Ship Packages Within D DaysLeetCodeMedium Solve Capacity To Ship Packages Within D Days on LeetCode (opens in a new tab)
6Minimum Number of Days to Make m BouquetsLeetCodeMedium Solve Minimum Number of Days to Make m Bouquets on LeetCode (opens in a new tab)
7Magnetic Force Between Two BallsLeetCodeMedium Solve Magnetic Force Between Two Balls on LeetCode (opens in a new tab)
8Chat BanCodeforcesMedium 1300Solve Chat Ban on Codeforces (opens in a new tab)
9Magic Powder - 1CodeforcesMedium 1400Solve Magic Powder - 1 on Codeforces (opens in a new tab)
10Maximum MedianCodeforcesMedium 1400Solve Maximum Median on Codeforces (opens in a new tab)
11Jumping Through SegmentsCodeforcesMedium 1400Solve Jumping Through Segments on Codeforces (opens in a new tab)
12Split Array Largest SumLeetCodeHard Solve Split Array Largest Sum on LeetCode (opens in a new tab)
13Kth Smallest Number in Multiplication TableLeetCodeHard Solve Kth Smallest Number in Multiplication Table on LeetCode (opens in a new tab)

Sign in to track your progress

Your checkboxes, streak and activity heatmap are saved to your account and sync across devices. It is free.
Sign in with email

New here? Create an account