https://leetcode.cn/problems/queue-reconstruction-by-height/
class Solution: def reconstructQueue(self, people: List[List[int]]) -> List[List[int]]: people.sort(key =lambda x: (-x[0], x[1])) que = [] for p in people: que.insert(p[1], p) return que
京公网安备 11010502049817号