Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
分类:
其他好文 时间:
2018-09-27 01:57:09
阅读次数:
135
duplicate的三个问题: 一.什么是duplicate? 二.duplicate来源? 三.既然PCR将1个reads复制得到成百上千copies,那为什么二代数据duplicate rate 一般才10+%? 什么是 duplicate? 摘自罗俊峰博士,阅尔基因研发总监陈云地博士,阅尔基因 ...
分类:
其他好文 时间:
2018-09-26 13:03:30
阅读次数:
278
这道题考的是DFS+序列化二叉树 我们将每一个节点的左子节点的值和右结点的值都存储下来,组成一个字符串,作为索引,将对应节点保存到map里。 如果一样的字符串已经出现过一次了,我们就把他的root保存在要返回的list中: ...
分类:
其他好文 时间:
2018-09-25 20:37:24
阅读次数:
130
使用 时遇到了这个问题,百思不得其解?? 后来总算找到了解决方法,使用子查询。如下: 参考链接:https://stackoverflow.com/questions/2472229/insert into select from on duplicate key update ...
分类:
数据库 时间:
2018-09-25 17:23:19
阅读次数:
880
默认情况下,我们用yum list 或者 yum install 的时候,yum会默认选择最新的版本。 如果我们需要安装指定版本的某个软件包,以使之能够和我们现有环境的软件包版本匹配,那么就需要用到showduplicates 使用 参数列出所有版本 查看docker ce: 查看docker ce ...
分类:
其他好文 时间:
2018-09-25 16:09:20
阅读次数:
3333
78. Subsets Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate sub ...
分类:
其他好文 时间:
2018-09-22 14:28:49
阅读次数:
178
之前没用过这个操作,甚至没见过……最近接触到,而且还挺有用。 作用:若 KEY 不重复,则插入记录;否则更新记录。 单条操作: 批量操作: 参考链接: 1. https://blog.csdn.net/BuptZhengChaoJie/article/details/50992923 2. http ...
分类:
数据库 时间:
2018-09-19 19:44:27
阅读次数:
167
数据类型(2) 字符类型 #官网:https://dev.mysql.com/doc/refman/5.7/en/char.html #注意:char和varchar括号内的参数指的都是字符的长度 #char类型:定长,简单粗暴,浪费空间,存取速度快 字符长度范围:0-255(一个中文是一个字符,是 ...
分类:
数据库 时间:
2018-09-18 22:46:18
阅读次数:
206
35. Search Insert Position Description Given a sorted array and a target value, return the index if the target is found. If not, return the index wher ...
分类:
其他好文 时间:
2018-09-18 20:54:30
阅读次数:
154
插入数据的时候 报错,Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'xxx-xxx-xxx-xxx-xxx' for key 'AA' 1、这段信 ...
分类:
其他好文 时间:
2018-09-18 19:01:02
阅读次数:
219