博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Repeated DNA Sequences
阅读量:4647 次
发布时间:2019-06-09

本文共 633 字,大约阅读时间需要 2 分钟。

比较难的一道题,但是还是能看懂

public class Solution {    public List
findRepeatedDnaSequences(String s) { // ref http://blog.csdn.net/haiyi727/article/details/43752693 int len = s.length(); HashSet
tmp = new HashSet
(); HashSet
resSet = new HashSet
(); ArrayList
res = new ArrayList
(); if(len<10) return res; HashMap
map = new HashMap
(); map.put('A',0); map.put('T',1); map.put('C',2); map.put('G',3); int hash = 0; for(int i=0;i

 

转载于:https://www.cnblogs.com/jiajiaxingxing/p/4521306.html

你可能感兴趣的文章
javascript之非构造函数的继承
查看>>
C#实现 单点登录(SSO)
查看>>
高精度计算(2015.8.1)
查看>>
cocos2d-x tile map瓦片地图的黑线及地图抖动解决方案
查看>>
软工网络15团队作业2——团队计划
查看>>
Android屏幕适配
查看>>
ps简单操作文档
查看>>
CSS之float样式
查看>>
08test
查看>>
测试用例方法总结
查看>>
基数---SQL Server 2008 Bible
查看>>
第一个JSP程序
查看>>
数组常用的API——splice()截取
查看>>
sbt教程
查看>>
djang1.7 复制粘贴小项目(generic View的使用)
查看>>
Python For Delphi---更好地协同(续)
查看>>
Java的内存泄漏
查看>>
152-PHP htmlspecialchars函数
查看>>
061-PHP函数定义默认参数
查看>>
Genymotion下载模拟器失败解决方案
查看>>