码迷,mamicode.com
首页 >  
搜索关键字:maximum number of th    ( 33896个结果
TCP 3次握手和四次挥手
1.建立一个连接需要三次握手:位码即tcp标志位,有6种标示:SYN(synchronous建立联机) ACK(acknowledgement 确认) PSH(push传送) FIN(finish结束) RST(reset重置) URG(urgent紧急)Sequence number(顺序号码) ...
分类:其他好文   时间:2014-05-29 04:17:13    阅读次数:354
Number Sequence POJ 1019
给定一个字符串满足规律 11212312345……,求其第k位的数字。算法思路:分组来看,第一组1 第二组12 第三组123 第K组[1:k]1-9组每组1位, 10-99组每组2位 依次类推。网上大部分解法,用一个数组表示到第k组时,一共需要多少位数,但这个方法需要额外的空间,而且空间大小并不是非...
分类:其他好文   时间:2014-05-29 02:46:29    阅读次数:272
DATEADD和DATEDIFF
DateAdd函数 返回 返回包含一个日期的 Variant (Date),这一日期还加上了一段时间间隔。 语法 DateAdd(interval, number, date) DateAdd 函数语法中有下列命名参数: 部分 描述 interval 必要。字符串表达式,是所要加上去...
分类:其他好文   时间:2014-05-29 01:06:42    阅读次数:390
mysql中 int(M)中M
http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html 这个M 就是maximum display width。那什么是maximum display width?看了下面的例子很容易说明了,注意zerofill :my.....
分类:数据库   时间:2014-05-28 04:07:12    阅读次数:314
LeedCode --- Best Time to Buy and Sell Stock
题目链接题意: find the maximum positive difference between the price on the ith day and the jth day附上代码: 1 class Solution { 2 public: 3 int maxProfit(ve...
分类:其他好文   时间:2014-05-28 03:49:45    阅读次数:307
xelatex 参考文献入门
使用ref.bib管理参考文献格式@article{name1,author = {作者, 多个作者用 and 连接},title = {标题},journal = {期刊名},volume = {卷20},number = {页码},year = {年份},abstract = {摘要, 这个主要...
分类:其他好文   时间:2014-05-28 02:19:57    阅读次数:376
LeetCode122:Best Time to Buy and Sell Stock II
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co...
分类:其他好文   时间:2014-05-28 00:53:26    阅读次数:338
Sequence用堆排序
DescriptionGiven m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers...
分类:其他好文   时间:2014-05-28 00:05:22    阅读次数:298
Palindrome Number (回文数)
回文数是指这样的数字:正读和倒读都是一样的。如:595,2332都是回文数,234不是回文数。注意:负数不是回文数Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could ne...
分类:其他好文   时间:2014-05-27 23:44:17    阅读次数:459
图片垂直居中
.box {/*非IE6、IE7的主流浏览器识别的垂直居中的方法*/display: table-cell; //设置了这个属性之后,此元素会做为一个表格单元格显示,类似th、td,margin属性将不起作用vertical-align:middle;/* 针对IE6、IE7的Hack */*d.....
分类:其他好文   时间:2014-05-27 16:08:20    阅读次数:321
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!