
算法
文章平均质量分 73
fylfyl2
这个作者很懒,什么都没留下…
展开
-
Letter Combinations of a Phone Number
https://leetcode.com/problems/letter-combinations-of-a-phone-number/这是我一开始的思路,穷举而已。String[] myMap=new String[]{"abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"}; public List letterCombination原创 2015-05-05 16:13:33 · 671 阅读 · 0 评论 -
Repeated DNA Sequences
原题链接https://leetcode.com/problems/repeated-dna-sequences/由于只有ATGC四个字母。我就简单的想到了位图对应的办法来做:public class Solution { public List findRepeatedDnaSequences(String s) { Set result=new HashSet();原创 2015-04-19 19:13:44 · 577 阅读 · 0 评论