Buy and Sell Stocks
Problem Statement
You are given an array prices[] where prices[i] represents the price of a stock on the i-th day. You need to find the maximum profit you can achieve by buying and selling the stock at most once. If no profit can be made, return 0.
E...
bugfreenik.hashnode.dev2 min read