Roses in a shop

3.5

58 votes
Algorithms, Dynamic Programming

?