Practice problem
Greedy Algorithm
When Applejack begins to buck trees, she starts off with 100 energy. Every minute, she may either choose to buck trees and lose 1 energy, where is her current energy, or rest (i.e. buck 0 trees) and gain 1 energy. What is the maximum number of trees she can buck after 60 minutes have passed?
Source: 2012-2013 Fall Online Math Open