HTMLify
LeetCode - Sort the People - Python
Views: 205 | Author: abh
class Solution:
def sortPeople(self, names: List[str], heights: List[int]) -> List[str]:
return [names[heights.index(h)] for h in sorted(heights, reverse=True)]