You are given a list of integers representing table capacities. Sort these table capacities in ascending order while maintaining their original group order as much as possible.
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak