Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2291. Maximum Profit From Trading Stocks
Given an array of daily stock prices and trading constraints (e.g., limits on number of transactions, transaction fees, or cooldowns), compute the maximum profit achievable by choosing buy/sell days. This typically requires modeling holding vs. not-holding states and using dynamic programming or a state-machine/greedy approach to track optimal decisions over time.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.