2418. Sort the People

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 2418

class Solution:
    def sortPeople(self, names: List[str], heights: List[int]) -> List[str]:
        return [name for _, name in sorted(zip(heights, names), reverse=True)]