Search
⌘K

Leetcode 2308. Arrange Table by Gender

Reorder the rows of a table so that entries are grouped by their gender attribute (e.g., all males before all females), typically while preserving the relative order within each gender. The core challenge is performing a stable partition of records efficiently for large datasets (in-place or optimal time/space).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.