Boats to Save People at UiPath

Medium61.4% acceptance

This problem has 62.5% frequency at UiPath.

Problem Description

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 same time, provided the sum of the weight of those people is at most `limit`. R...

Read full problem and hints

Topics

Also asked at 13 companies


More UiPath Questions

View all UiPath questions