← ALL NOTES
Array

2599. Make the Prefix Sum Non-negative

Given nums. One operation removes any element and moves it to the end of the array. Find the minimum number of such operations so that all prefix sums become non-negative. Moving an element to the…

Loading…