881. Wrong Official Answer

I think the official answer is not correct.

Input:
[3,2,3,2,2]
6

We can load the people by only 2 boats: (3,3), (2,2,2).
But the official answer is 3 boats...

Comments (1)