网站首页
编程语言
数据库
系统相关
其他分享
编程问答
人塔
2024-09-25
[Python手撕]马戏团人塔
classSolution:defbestSeqAtIndex(self,height:List[int],weight:List[int])->int:n=len(height)persons=[[height[i],weight[i]]foriinrange(n)]persons.sort(key=lambdax:x[0])n=len(persons)