Concept Flow - Buy and Sell Stocks All Variants
Start: Prices Array
Choose Variant
One Transaction
Find max diff
Return max profit
The flow starts with the prices array, then chooses the variant of the problem, and follows the specific logic to find max profit.
