A large cargo ship is to be loaded with cargo. The cargo is containerised and all containers are the same size. Different containers may have different weights.
Given the cargo capacity of the ship to be ‘c’ and an integer array of weights of the container. We need to load the ship with maximum number of containers.
you can collect the code from the following git repo : https://github.com/thisisaish/GreedyA...
Icons made by Icongeek26 from www.flaticon.com
https://www.flaticon.com/
On this page of the site you can watch the video online The container loading problem | Container loading problem | Greedy algorithm with a duration of hours minute second in good quality, which was uploaded by the user Aishwarya M 30 May 2021, share the link with friends and acquaintances, this video has already been watched 6,947 times on youtube and it was liked by 80 viewers. Enjoy your viewing!