We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4b629a commit e0ef7f7Copy full SHA for e0ef7f7
cpp/0881-boats-to-save-people.cpp
@@ -1,6 +1,6 @@
1
/*
2
- Given an array people[i] is the weight of the ith person,
3
- and an infinite number of boats where each boat can carry a maximum weight of limit.
+ Given an array of people's weight, people[i] is the weight of the ith person,
+ and there is an infinite number of boats where each boat can carry a maximum weight of limit.
4
Each boat carries at most two people at the same time, provided the sum of the weight of those people is at most limit.
5
Return minimum number of boats to carry every given person.
6
0 commit comments