Approach hintTry it first, then revealHide
Go from left to right: fell a tree to the left if it fits, otherwise to the right if it stays clear of the next tree, and remember the occupied endpoint. The first and last trees can always be felled.
Go from left to right: fell a tree to the left if it fits, otherwise to the right if it stays clear of the next tree, and remember the occupied endpoint. The first and last trees can always be felled.