算法
文章平均质量分 76
东方宜玲
对很多技术都感兴趣,希望有事没事大家可以奇异讨论
展开
-
剑指offer和leetcode解题报告
解题报告我都放在我的github上,欢迎大家的到访 附上github地址:https://github.com/dyljqq/Algorithm重要的地址放三遍: github地址:https://github.com/dyljqq/Algorithm github地址:https://github.com/dyljqq/Algorithm github地址:https://github.c原创 2016-03-02 22:13:19 · 740 阅读 · 0 评论 -
14. Longest Common Prefix(leetcode)
14. Longest Common Prefix 题目:Write a function to find the longest common prefix string amongst an array of strings. 思路:找所有字符串的最大前缀。我刚开始的想法是先找到最短的字符串,然后根据这个字符串长度去找最大前缀。时间复杂度是O(N * l),l表示最短字符串原创 2016-03-09 22:16:50 · 298 阅读 · 0 评论