Skip to content

Conversation

Dishantdhillon
Copy link

@Dishantdhillon Dishantdhillon commented Oct 5, 2021

Thank you for your contribution. Please provide the details requested below.

ISSUE NUMBER

SHORT DESCRIPTION

given N numbers(both +ve and -ve), arranged in a circle, you have to find the maximum sum of consecutive numbers.

TESTING

Input
9
11 10 -20 5 -3 -5 8 -13 10

Output
31

Input
5
-1 -2 -5 -4 -7

Output
-1

Given N numbers(both +ve and -ve), arranged in a circle, you have to find the maximum sum of consecutive numbers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant