LogicDecode / hactoberfest2023

Pull request best of your code snippets to help open source community
MIT License
10 stars 143 forks source link

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

Closed m-soumik closed 10 months ago

m-soumik commented 11 months ago

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.