Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
CodeProject Code Challenge : Largest Group SumFor [], 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
|