摘要: Given a set of points in the xy-plane, determine the minimum area of any rectangle formed from these points, with sides not necessarily parallel to th 阅读全文
posted @ 2018-12-23 21:48 yuxihong 阅读(416) 评论(0) 推荐(0) 编辑
摘要: In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated N times. Ex 阅读全文
posted @ 2018-12-23 19:24 yuxihong 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Given an array A of integers, a ramp is a tuple (i, j) for which i < j and A[i] <= A[j]. The width of such a ramp is j - i. Find the maximum width of 阅读全文
posted @ 2018-12-23 14:11 yuxihong 阅读(392) 评论(0) 推荐(0) 编辑