摘要: https://leetcode.com/problems/queue-reconstruction-by-height/#/description 上面这个写的够长的了,用python,4行就可以实现: 先按照第一个元素倒序排,再按照第二个元素正序排,然后用insert方法,在指定的index上插 阅读全文
posted @ 2017-05-01 20:27 Sempron2800+ 阅读(219) 评论(0) 推荐(0) 编辑