Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

CodeProject Code Challenge : Largest Group Sum

Language: Layout:
+ ] Show input
Compilation time: 0,16 sec, absolute running time: 0,09 sec, cpu time: 0,09 sec, average memory usage: 13 Mb, average nr of threads: 3 
edit mode |  history
For [], the largest group is [] with a sum of 0
For [-1,-2,-5,-4,-5,-1,-2,-11], the largest group is [] with a sum of 0
For [1,2,5,4,5,1,2,11], the largest group is [1,2,5,4,5,1,2,11] with a sum of 31
For [1,2,-5,4,5,-1,2,-11], the largest group is [4,5,-1,2] with a sum of 10
For [5,-5,5,-10,5,-5,5], the largest group is [5,-5,5] with a sum of 5
For [5,-5,5,-5,5], the largest group is [5,-5,5,-5,5] with a sum of 5

-- Press any key to exit --

    
                
λ
.NET NoSQL database for rapid development