BackmediumArrays Microsoft

Capacity Sorted Tables Solution

Problem Statement

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.

Constraints

  • Input list can be empty
  • Each table's capacity is a positive integer
Live Compiler
Loading...
Test Cases & Output
🔒 Sign up to run your code

🚀 Practice this problem

Run code, get AI hints & track streak

Sign Up Free