Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i+1??, ..., N?j?? } where 1. The Max ...
分类:
其他好文 时间:
2019-01-23 00:19:14
阅读次数:
136
一、MD5加密 HASHBYTES ('加密方式', '待加密的值') 加密方式= MD2 | MD4 | MD5 | SHA | SHA1 返回值类型:varbinary(maximum 8000 bytes) 二、MD5加密示例 HASHBYTES生成的结果为:0xE10ADC3949BA59A ...
分类:
数据库 时间:
2019-01-21 19:15:55
阅读次数:
181
Trim Galore是一个非常流行的用于「去接头序列」的软件,用于处理高通量测序得到的原始数据。通常我们从测序公司拿到数据后,第一步就是评估数据的质量以及对raw data去接头处理。公司拿来的数据通常附带了clean data以及去接头的说明文件,我自己重新实现了一下trim的过程。参数都是根据 ...
分类:
其他好文 时间:
2019-01-21 13:53:15
阅读次数:
592
Flow Problem HDU - 3549 Network flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow for the we ...
分类:
其他好文 时间:
2019-01-20 18:48:49
阅读次数:
260
极大似然估计学习时总会觉得有点不可思议,为什么可以这么做,什么情况才可以用极大似然估计。本文旨在通俗理解MLE(Maximum Likelihood Estimate)。 一、极大似然估计的思想与举例 举个简单的栗子:在一个盒子里有白色黑色小球若干个,每次有放回地从里面哪一个球,已知抽到白球的概率可 ...
分类:
其他好文 时间:
2019-01-20 15:57:40
阅读次数:
245
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: 1 class Solu ...
分类:
其他好文 时间:
2019-01-20 15:07:08
阅读次数:
164
leetcode 题目: Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example 1: Example 2: /** * Definitio ...
分类:
其他好文 时间:
2019-01-20 12:06:18
阅读次数:
175
DP式很容易得到,发现是线性递推形式,于是可以矩阵加速。又由于是区间形式,所以用线段树维护。 https://www.cnblogs.com/Miracevin/p/9124511.html 关键在于证明区间操作中,可以直接在打标记的位置翻转矩阵两行两列。 上面网址用代数形式证了一遍,这里考虑从矩阵 ...
分类:
其他好文 时间:
2019-01-19 20:08:54
阅读次数:
266
1. 准备vhd文件 C:\WINDOWS\system32 diskpart DISKPART CREATE VDISK FILE=D:\win7.vhdx MAXIMUM=51200 TYPE=EXPANDABLE DISKPART ATTACH VDISK 1. 提取install.wim 安 ...
问题描述 对于一串数A={a1a2a3…an},它的子序列为S={s1s2s3…sn},满足{s1<s2<s3<…<sm}。求A的最长子序列的长度。 动态规划法 算法描述: 设数串的长度为n,L[i]为以第i个数为末尾的最长上升子序列的长度,a[i]为数串的第i个数。 L[i]的计算方法为:从前i- ...
分类:
其他好文 时间:
2019-01-16 22:43:42
阅读次数:
259