cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Largest sum Continuous Array Problem

Open Arunraj97 opened this issue 9 years ago • 15 comments

For eg :- If the array is -3 2 -1 0 4 7 then the largest sum is 12 ( 2+(-1)+0+4+7)

Arunraj97 avatar Oct 04 '17 15:10 Arunraj97

can i do this in c++?

alphaWizard avatar Oct 04 '17 15:10 alphaWizard

Sure @alphaWizard Go for it 👍

AdiChat avatar Oct 04 '17 15:10 AdiChat

I wrote this awhile back in JavaScript

cmckni3 avatar Oct 04 '17 16:10 cmckni3

@cmckni3 Feel free to add a pull request 👍

AdiChat avatar Oct 04 '17 16:10 AdiChat

Can I try this in Java?

AlexanderDavid avatar Oct 04 '17 16:10 AlexanderDavid

Can I try it in python?

AK-007 avatar Oct 04 '17 16:10 AK-007

Sure @AlexanderDavid @AK-007 Go ahead 👍

AdiChat avatar Oct 04 '17 16:10 AdiChat

where do we have to add the file?

namish800 avatar Oct 04 '17 16:10 namish800

This code should be placed at code/dynamic programming/largest sum contiguous subarray 👍

AdiChat avatar Oct 04 '17 16:10 AdiChat

#465 Added in Python and tested the same !!!

devAmoghS avatar Oct 04 '17 17:10 devAmoghS

#471 Added in Java

its-snorlax avatar Oct 04 '17 18:10 its-snorlax

Review my PR https://github.com/OpenGenus/cosmos/pull/462

namish800 avatar Oct 04 '17 18:10 namish800

PR #476 Implemented.

AK-007 avatar Oct 04 '17 18:10 AK-007

I'd like to implement this in Haskell.

setupminimal avatar Oct 04 '17 19:10 setupminimal

If you want to check your solution, you can use hackerrank

BrianBohe avatar Oct 04 '17 22:10 BrianBohe