Topic: Greedy Algorithm Problem / Level: beginner

Problem: You are given a set of people with different weights. Find the minimum number of groups that can be formed such that the total weight in each group does not exceed a limit.

Run the code to see the output here...