Course contentsShow
Computer Science
Lesson 902 of 2,87221. Greedy AlgorithmsPro lesson

Buy Maximum Stocks with K Transactions

Maximize profit by greedily buying and selling stocks whenever price increases on consecutive days.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.