We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Search
- Maximum Subarray Sum
- Discussions
Maximum Subarray Sum
Maximum Subarray Sum
Sort by
recency
|
342 Discussions
|
Please Login in order to post a comment
Here is my Python solution!
No need to use tree or sorted set. Just store all the prefix sums and sort. This idea comes from a different problem of minimising loss on house purchasing.
pure java... package geeksforgeeks; import java.util.*;
public class Maxnumber {
}
pure java... package geeksforgeeks; import java.util.*;
public class Maxnumber {
}
This is my idea