Select the maximum number of transactions without the running total going negative.
Unlock detailed company stats for this questionUpgrade
Given an array of transactions (positive, negative or zero), select the maximum number of transactions, preserving order, such that the running total never goes negative at any point. A House Robber variant. Constraints: transaction values from -10^9 to 10^9.
Community answers
No answers contributed by the community yet.
Related questions
Return the maximum number of sessions that were active at the same time.Select the maximum number of riders who can travel together given L[i] and H[i] limits.Related courses

Course

Course
Course
