Search
⌘K

Leetcode 2418. Sort the People

Given parallel arrays names and distinct heights, return the names reordered so people are sorted by descending height. Core challenge: associate each name with its numeric height and sort by that key to produce the ordered list of names.


Question Timeline

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

Comments

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