摘要: 题目: 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] is zero. To make 阅读全文
posted @ 2017-04-15 22:17 Vincent丶丶 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of n integers nums and a target, find the number of index triplets i, j, k with 0 <= i < j < k < n that satisfy the condition nums[ 阅读全文
posted @ 2017-04-15 21:00 Vincent丶丶 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 the three integ 阅读全文
posted @ 2017-04-15 20:23 Vincent丶丶 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 quadruplets in the array 阅读全文
posted @ 2017-04-15 16:37 Vincent丶丶 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 which gives the sum 阅读全文
posted @ 2017-04-15 15:08 Vincent丶丶 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 题目: 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 input would hav 阅读全文
posted @ 2017-04-15 12:33 Vincent丶丶 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 题目: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes co 阅读全文
posted @ 2017-04-15 12:24 Vincent丶丶 阅读(223) 评论(0) 推荐(0) 编辑