摘要: 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 @ 2020-04-06 06:44 xuan_abc 阅读(144) 评论(0) 推荐(0)
摘要: Given n ropes of different lengths, we need to connect these ropes into one rope. We can connect only 2 ropes at a time. The cost required to connect 阅读全文
posted @ 2020-04-06 04:24 xuan_abc 阅读(142) 评论(0) 推荐(0)
摘要: Given a list of positive integers nums and an int target, return indices of the two numbers such that they add up to a target - 30. Conditions: You wi 阅读全文
posted @ 2020-04-06 03:36 xuan_abc 阅读(219) 评论(0) 推荐(0)
摘要: Given 2 lists a and b. Each element is a pair of integers where the first integer represents the unique id and the second integer represents a value. 阅读全文
posted @ 2020-04-06 03:12 xuan_abc 阅读(132) 评论(0) 推荐(0)