AkhzarFarhan / HactoberFest-2022

This repository is made for absolute beginners who want to make their first pull request to get eligibility for HactoberFest-2022.
8 stars 150 forks source link

Stock Buy and Sell - GFG #183

Closed VT02 closed 8 months ago

VT02 commented 1 year ago

The cost of stock on each day is given in an array A[] of size N. Find all the segment of days on which you buy and sell the stock so that in between those days your profit is maximum.