Find the maximum index reachable after rearranging elements so the prefix sum never goes below 0.
Unlock detailed company stats for this questionUpgrade
Rearrange the elements so that the contiguous sum up to the maximum index never goes below 0, and find that maximum index.
Community answers
No answers contributed by the community yet.


