Greedy Algorithms8 sections · 316 units
Open in CourseQuiz: Stock Trading
Comparing strategies
Check Your Understanding
Why does the Stock II greedy solution NOT work for Stock I (single transaction)?
- A.With one transaction, you cannot capture every upward movement
- B.Stock I requires dynamic programming
- C.Greedy never works for stock problems
- D.The time complexity would be too high