Skip to content

Stock Buy Sell to Maximize Profit using Local Maximum and Local Minimum - #35

Open
m-soumik wants to merge 1 commit into
Mritunjay19:masterfrom
m-soumik:master
Open

Stock Buy Sell to Maximize Profit using Local Maximum and Local Minimum#35
m-soumik wants to merge 1 commit into
Mritunjay19:masterfrom
m-soumik:master

Conversation

@m-soumik

@m-soumik m-soumik commented Oct 3, 2023

Copy link
Copy Markdown

In this approach, we will find the local minima and maxima. The local minima will be treated as the starting index, and the local maxima will be treated as the ending index. If local minima do not exist, then return. We will also be updating the solution by updating the count of buy-sell pairs.

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