摘要:
题目: 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 @ 2016-03-20 20:09
gavinXing
阅读(107)
评论(0)
推荐(0)
摘要:
题目: Write a function to find the longest common prefix string amongst an array of strings. 思路: 1.假定第一个是,然后比较、缩减 2.同时比较所有的第i位,直到存在不同或到某字符串末 代码 思路1 c++: 阅读全文
posted @ 2016-03-20 15:00
gavinXing
阅读(111)
评论(0)
推荐(0)
浙公网安备 33010602011771号