LeetCode Blind 2/75: Best Time to Buy and Sell Stock
You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock.
You want to maximize your profit by choosing a single day to buy one stock and choosing a different day in the future to sell that stock.
Given an array of integers nums and an integer target , return indices of the two numbers such that they add up to target.