首页 > TAG信息列表 > Boats

greedy

881. Boats to Save People Medium You are given an array people where people[i] is the weight of the ith person, and an infinite number of boats where each boat can carry a maximum weight of limit. Each boat carries at most two people at the sa