Hello, I am Neeraj Mahapatra,
SORRY FOR VOICE.....
Today we are going to learn about Priyanka and Toys.
Priyanka works for an international toy company that ships by container. Her task is to the determine the lowest cost way to combine her orders for shipping. She has a list of item weights. The shipping company has a requirement that all items loaded in a container must weigh less than or equal to 4 units plus the weight of the minimum weight item. All items meeting that requirement will be shipped in one container.
What is the smallest number of containers that can be contracted to ship the items based on the given list of weights?
Question Link:-
https://www.hackerrank.com/challenges...
Time Stamps:-
00:00-Intro
00:08 - Question Explanation
01:55 - Approach Explanation
05:34 - Cpp Code
09:40 - Java Code
#cpp #java #programming #greedy #priyankaandtoys #priyankaandtoyshackerrank #greedy #sorting
Hope you like this video...
Please SUBSCRIBE, LIKE AND COMMENT...
Share to show Support..
Support us !!!.....Thanks....❤