摘要: We have a collection of rocks, each rock has a positive integer weight. Each turn, we choose the two heaviest rocks and smash them together. Suppose t 阅读全文
posted @ 2019-07-13 09:27 fatttcat 阅读(256) 评论(0) 推荐(0) 编辑
摘要: We have a list of points on the plane. Find the K closest points to the origin (0, 0). (Here, the distance between two points on a plane is the Euclid 阅读全文
posted @ 2019-07-13 08:06 fatttcat 阅读(282) 评论(0) 推荐(0) 编辑