LeetCode
Cut Off Trees for Golf Event
Click
here
for an explanation.