class Solution1(object): def minimumTotal(self, triangle): """ :type triangle: List[List[int]] :rtype: int """ self.dp(triangle) # i # i , i+1 def dp( ...
分类:
其他好文 时间:
2019-03-17 14:05:04
阅读次数:
147
算法核心是很好理解的。如果是首位或者末位,就等于一。否则的话,等于上一轮中两数之和。 如果当前是a[i][j] 那么就等于 a[i-1][j]+a[i-1][j+1] python: ...
分类:
编程语言 时间:
2019-03-14 13:19:02
阅读次数:
195
Django连接mssql(SqlServer) 方法一: 1、需要安装pymssql pip install pymssql 2、使用方法: import pymssql conn=pymssql.connect(host='127.0.0.1',user='user',password='pas ...
分类:
数据库 时间:
2019-03-06 15:03:17
阅读次数:
289
#!/usr/bin/expect -f ########################################## hutu #Push the id.pas.pub public key to the target server through the SSH service to i... ...
分类:
其他好文 时间:
2019-03-06 12:02:56
阅读次数:
193
题目标签:Array 题目给了我们一个 边长的 array, 让我们找出 最大边长和的三角形,当然前提得是这三条边能组成三角形。如果array 里得边长组成不了三角形,返回0。 最直接的理解就是,找到三条最长的边,再判断是不是能够组成三角形,如果不行,继续去找更小得边。 所以维护三个max1,max ...
分类:
其他好文 时间:
2019-03-04 09:18:11
阅读次数:
180
前言 css的顶层样式表由两种规则组成的规则列表构成,一种称为at—rule规则,也就是at规则,另一种是qualified rule,也就是普通规则。今天就学习一下at规则 正文 @charset 用于提示css文件使用的编码方式,必须在最前面使用 @import 用于引入一个css文件,除了@c ...
分类:
Web程序 时间:
2019-02-26 00:55:19
阅读次数:
183
ftp服务器1.安装vsftpd服务器sudo apt-get install vsftpd2.配置vsftpd.conf文件sudo vi /etc/vsftpd.conf添加下面设置anonymous_enable=YESanon_root=/home/itcast/ftpno_anon_pas ...
分类:
其他好文 时间:
2019-02-17 23:51:05
阅读次数:
235
refer : https://www.youtube.com/watch?v=R7dObDtw1aA https://www.shuxuele.com/algebra/trig-finding-angle-right-triangle.html https://developer.mozilla. ...
分类:
其他好文 时间:
2019-02-17 00:54:58
阅读次数:
184
1、错误描述 mysql> set password for ‘root’@‘localhost’ = password('root'); ERROR 1133 (42000): Can't find any matching row in the user table mysql> set pas ...
分类:
其他好文 时间:
2019-02-13 12:31:12
阅读次数:
297