All challenges

Greedy

Taking the best choice at each step when that is provably enough.

StatusChallengeLevelSave
1.Best Time to TradePick one day to buy and a later day to sell for the biggest profit.Easy
2.Maximum SubarrayFind the largest sum of a run of consecutive numbers.Medium
3.Container With Most WaterPick two walls that hold the most water between them.Medium
4.Jump GameDecide whether you can jump from the first square to the last.Medium