Topic: Greedy Algorithm Problem / Level: beginner

Problem: You are given a set of people with varying heights. Divide them into the minimum number of groups such that each group is sorted in non-decreasing order of height.

Run the code to see the output here...