You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A conveyor belt has packages that must be shipped from one port to another within ''days'' days.
The ith package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We may not load more weight than the maximum weight capacity of the ship.
Return the least weight capacity of the ship that will result in all the packages on the conveyor belt being shipped within ''days'' days.
A question using Binary search.
Language=Java
Space complexity=O(1)
Time Complexity=O(n)
The text was updated successfully, but these errors were encountered:
A conveyor belt has packages that must be shipped from one port to another within ''days'' days.
The ith package on the conveyor belt has a weight of weights[i]. Each day, we load the ship with packages on the conveyor belt (in the order given by weights). We may not load more weight than the maximum weight capacity of the ship.
Return the least weight capacity of the ship that will result in all the packages on the conveyor belt being shipped within ''days'' days.
A question using Binary search.
Language=Java
Space complexity=O(1)
Time Complexity=O(n)
The text was updated successfully, but these errors were encountered: