Day 19 of LeetCode Challenge
Problem 1: Best Time to Buy and Sell Stock
Link to the problem: https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
class Solution {
public int maxProfit(int[] prices) {
int buyPrice = prices[0];
int profit = 0;
...
tusharpant.hashnode.dev3 min read