Question: solve using any programming language - Choose three packages with the same weight Determine the minimum number of trips required to deliver the packages. If

 solve using any programming language - Choose three packages with the

solve using any programming language

- Choose three packages with the same weight Determine the minimum number of trips required to deliver the packages. If it is not possible to deliver all of them, return - 1 . Example weights =[2,4,6,6,4,2,4] The agent needs a minimum of 3 trips as shown below. Return 3 as the answer. Remaining First Trip \begin{tabular}{|l|l|l|l|l|} \hline 4 & 6 & 6 & 4 & 4 \\ \hline \end{tabular} Second Trip Third Trip

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!