Skip to main content

2 docs tagged with "Greedy"

View All Tags

Buy and Sell Stocks 2

Say you have an array for which the i-th element is the price of a given stock on day i.

Candy

There are N children standing in a line. Each child is assigned a rating value.