原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-28 13:04:59
阅读次数:
162
思想:先序遍历。注意的是: 当只有一个孩子结点时,深度是此孩子结点深度加 1 .
思想: 先序遍历。既要返回左右子树判断的结果,又要返回左右子树的深度进行再判断。
所以要么返回一个 pair, 要么函数参数增加一个引用来传递返回值。
分类:
其他好文 时间:
2014-08-27 18:25:08
阅读次数:
207
Minimum Transport Cost
Time Limit: 2 Seconds Memory Limit: 65536 KB
These are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now ther...
分类:
其他好文 时间:
2014-08-27 13:07:27
阅读次数:
235
第一个:禁止用户手动调整缩放。width-viewport的宽度height-viewport的高度initial-scale-初始的缩放比例minimum-scale-允许用户缩放到的最小比例maximum-scale-允许用户缩放到的最大比例user-scalable-用户是否可以手动缩放第二个...
分类:
移动开发 时间:
2014-08-27 10:35:47
阅读次数:
226
一、网页手机wap2.0网页的head里加入下面这条元标签,在iPhone的浏览器中页面将以原始大小显示,并不允许缩放。 <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, max...
分类:
Web程序 时间:
2014-08-26 20:02:47
阅读次数:
263
Minimum Inversion Number
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other)
Total Submission(s) : 1 Accepted Submission(s) : 1
Problem Description
The inversion nu...
分类:
其他好文 时间:
2014-08-26 17:23:36
阅读次数:
283
查看现有的分区[root@server~]#fdisk-l
Disk/dev/sda:21.5GB,21474836480bytes
255heads,63sectors/track,2610cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):512bytes/512bytes
I/Osize(minimum/optimal):512bytes/512bytes
Diskidentifier..
分类:
其他好文 时间:
2014-08-26 11:52:46
阅读次数:
274
1)环境准备在关机状态下新添加一块磁盘对新加入的磁盘进行分区,并挂载至指定目录[root@host1~]#fdisk-l/dev/sdb
Disk/dev/sdb:5368MB,5368709120bytes
255heads,63sectors/track,652cylinders
Units=cylindersof16065*512=8225280bytes
Sectorsize(logical/physical):512bytes..
分类:
系统相关 时间:
2014-08-26 03:08:55
阅读次数:
393
原题戳我Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You ha...
分类:
其他好文 时间:
2014-08-26 00:14:25
阅读次数:
334