leetcode
文章平均质量分 72
wiilman
这个作者很懒,什么都没留下…
展开
-
leetcode之Longest Common Prefix的js实现
原题在这里。老规矩,还是先简单翻译一下。查找指定字符串数组每个元素的最长相同前缀。如果没有相同的前缀,那么返回""。举个例子:Input: ["flower","flow","flight"] Output: "fl"Input: ["dog","racecar","car"] Output: "" Explanation: Th原创 2018-07-08 17:17:40 · 234 阅读 · 0 评论 -
leetcode之3sum的js实现
题目在这里。 翻译一下: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: The solution s...原创 2018-07-15 19:54:36 · 351 阅读 · 0 评论