摘要: 3sum问题 leetcode java 1.问题描述 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 a 阅读全文
posted @ 2017-09-20 09:45 流泉滴沙 阅读(1106) 评论(0) 推荐(0)
摘要: Longest Common Prefix问题leetcodejava 1.问题描述Write a function to find the longest common prefix string amongst an array of strings.题目翻译:写一个函数,找到一个String数组中各个字符串的最长公共前缀。 2.解题思路这道题的难度是easy,确实解题思路也比较直观,首... 阅读全文
posted @ 2017-09-20 00:27 流泉滴沙 阅读(298) 评论(0) 推荐(0)