Question DSA-DP-0074
HardWhat is the state for the 'best time to buy and sell stock with at most k transactions' DP?
- A.
(day, transactions used, holding or not)
- B.
(day) only
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Dynamic Programming question
What is the state for the 'best time to buy and sell stock with at most k transactions' DP?
(day, transactions used, holding or not)
(day) only
Sign up free to see the answer and a step-by-step explanation.
(price) only
(transactions) only