Greedy Algorithms8 sections · 316 units
Open in Course

Quiz: Stock Trading

Comparing strategies

Check Your Understanding

Why does the Stock II greedy solution NOT work for Stock I (single transaction)?

  1. A.With one transaction, you cannot capture every upward movement
  2. B.Stock I requires dynamic programming
  3. C.Greedy never works for stock problems
  4. D.The time complexity would be too high
Start the roadmap to answer the quizzes and solve the challenges