上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 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)
摘要: Problem statement: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target n 阅读全文
posted @ 2017-05-20 20:39 蓝色地中海 阅读(169) 评论(0) 推荐(0)
摘要: Problem statement: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of 阅读全文
posted @ 2017-05-20 20:25 蓝色地中海 阅读(155) 评论(0) 推荐(0)
摘要: Problem statement: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array whic 阅读全文
posted @ 2017-05-20 10:10 蓝色地中海 阅读(144) 评论(0) 推荐(0)
摘要: Problem statement: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each 阅读全文
posted @ 2017-05-20 09:34 蓝色地中海 阅读(131) 评论(0) 推荐(0)
摘要: Problem statement: Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Examp 阅读全文
posted @ 2017-05-20 00:09 蓝色地中海 阅读(173) 评论(0) 推荐(0)
摘要: Problem statement: Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of si 阅读全文
posted @ 2017-05-19 11:43 蓝色地中海 阅读(258) 评论(0) 推荐(0)
摘要: Problem statement: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2. Note: Solution: This pro 阅读全文
posted @ 2017-05-19 10:01 蓝色地中海 阅读(124) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页