摘要: Problem statement: There are some trees, where each tree is represented by (x,y) coordinate in a two-dimensional garden. Your job is to fence the enti 阅读全文
posted @ 2017-05-21 09:13 蓝色地中海 阅读(470) 评论(0) 推荐(0)
摘要: Problem statement: Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] i 阅读全文
posted @ 2017-05-21 09:12 蓝色地中海 阅读(130) 评论(0) 推荐(0)
摘要: Problem statement: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplet 阅读全文
posted @ 2017-05-21 09:11 蓝色地中海 阅读(129) 评论(0) 推荐(0)