摘要:
题目: 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 阅读全文
摘要:
题目: Write a function to find the longest common prefix string amongst an array of strings. 思路: 1.假定第一个是,然后比较、缩减 2.同时比较所有的第i位,直到存在不同或到某字符串末 代码 思路1 c++: 阅读全文