摘要: 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 of ... 阅读全文
posted @ 2014-05-08 18:33 linyx 阅读(202) 评论(0) 推荐(0) 编辑
摘要: O(g(n)) = { f(n) : 存在正常数c和n0 ,使对所有的n >= n0,都有 0 = n0,都有 0 = n0,都有 0 = n0,都有 0 = n0,都有 0 <= cg(n) <= f(n) }。小w记号给出函数的非渐进紧确的下界。 阅读全文
posted @ 2014-05-08 00:22 linyx 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu... 阅读全文
posted @ 2014-05-08 00:19 linyx 阅读(187) 评论(0) 推荐(0) 编辑