LeetCode
Boats to Save People
Click
here
for an explanation.