Showing 2 questions
You are given an array representing the heights of vertical lines. Find two lines that, together with the x-axis, form a container that holds the most water.
#1. Container With Most Water
You're given stock prices for multiple days. Determine the maximum profit you can achieve by making at most 'k' transactions (buy and sell) within the given timeframe.
#2. Best Time to Buy and Sell Stock IV
Page 1 of 1 · 2 total