摘要: Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. Example 1: Input: A = [4,5,0,-2,- 阅读全文
posted @ 2019-01-13 18:33 樱花落舞 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area, formed from 3 of these lengths. If it is impossib 阅读全文
posted @ 2019-01-13 18:30 樱花落舞 阅读(138) 评论(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-01-13 18:28 樱花落舞 阅读(184) 评论(0) 推荐(0) 编辑