Each boat carries at most two people, subject to a weight limit. Given everyone's weights, return the minimum number of boats needed to carry every person.
Input
limitOutput: the minimum number of boats.
1 2 3
1
3 2 2 1 3
3
Boats: (1,2), (2), (3).
3 5 3 4 5
4
No two fit together.
Run your code against the sample tests, or Submit to run the full suite.