//杨辉三角(数组) /* * @Description: Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. * Input: 5 * Output: * [ * [1], * ...
分类:
编程语言 时间:
2020-03-06 15:00:14
阅读次数:
78
1 """ 2 Given a non-empty array of digits representing a non-negative integer, plus one to the integer. 3 The digits are stored such that the most sig ...
分类:
其他好文 时间:
2020-03-06 13:09:03
阅读次数:
61
案例代码: table_relation = db.Table('stu_tea_rel', # 关系表明 db.Column('stu_id', db.Integer, db.ForeignKey('student.id')), # 多关系表的主键 db.Column('tea_id', db.I ...
分类:
其他好文 时间:
2020-03-06 11:14:44
阅读次数:
50
Blast进行同源基因的寻找 参考博客: http://boyun.sh.cn/bio/?p=1849 https://www.bioinfo scrounger.com/archives/673/ 基于蛋白的比对结果,寻找某一个蛋白家族的同源基因,使用如下的参数 identity 30%; e v ...
分类:
其他好文 时间:
2020-03-06 11:02:20
阅读次数:
214
案例代码: #定义模型 class BookInfo(db.Model): #设置表名 __tablename__ = 'bookinfo' #设置为主键之后,自动自增长 id = db.Column(db.Integer,primary_key=True) name = db.Column(db. ...
分类:
其他好文 时间:
2020-03-06 10:36:52
阅读次数:
49
输入两个整数序列,第一个序列表示栈的压入顺序,请判断第二个序列是否可能为该栈的弹出顺序。假设压入栈的所有数字均不相等。例如序列1,2,3,4,5是某栈的压入顺序,序列4,5,3,2,1是该压栈序列对应的一个弹出序列,但4,3,5,1,2就不可能是该压栈序列的弹出序列。(注意:这两个序列的长度是相等的 ...
分类:
其他好文 时间:
2020-03-06 09:14:02
阅读次数:
67
在Delphi中,LongInt和Integer,LongWord和Cardinal有什么区别? 有时候我发现DWORD的用法是什么呢? 它们在所有版本的Delphi中是否一致?我应该坚持哪一个? 简而言之:Longint和Longword是固定大小的整数,前者是有符号的,后者是无符号的,并且通常都 ...
先排序,再用双指针,注意的是解中是没有重复的情况的,所以需要跳过。 class Solution { public List<List<Integer>> threeSum(int[] nums) { List<List<Integer>> res = new ArrayList<>(); Arra ...
分类:
其他好文 时间:
2020-03-06 01:31:24
阅读次数:
48
Map是一个接口,其中一个唯一键与每个值对象相关联。 因此,搜索,更新,删除等操作都是基于键来进行的。 完整的项目目录结构如下所示 - 集合映射实例 在这个例子中,我们将一个对象嵌入到一个实体类中,并将其定义为一个集合类型 - Map。 private Map<Integer,Address> ma ...
分类:
其他好文 时间:
2020-03-06 01:16:49
阅读次数:
96
Non-local Neural Networks 2020-03-05 20:24:39 Paper: CVPR_2018 Code: https://github.com/facebookresearch/video-nonlocal-net (Caffe2 version) https://g ...
分类:
Web程序 时间:
2020-03-05 20:49:54
阅读次数:
82