上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 84 下一页
摘要: 在TCP/IP分层中,数据链路层用MTU(Maximum Transmission Unit,最大传输单元)来限制所能传输的数据包大小,MTU是指一次传送的数据最大长度,不包括数据链路层数据帧的帧头,如以太网的MTU为1500字节,实际上数据帧的最大长度为1512字节,其中以太网数据帧的帧头为12字... 阅读全文
posted @ 2015-07-15 10:40 穆穆兔兔 阅读(1219) 评论(0) 推荐(0) 编辑
摘要: Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ... 阅读全文
posted @ 2015-07-14 17:01 穆穆兔兔 阅读(370) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->... 阅读全文
posted @ 2015-07-14 16:54 穆穆兔兔 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ... 阅读全文
posted @ 2015-07-13 18:08 穆穆兔兔 阅读(387) 评论(0) 推荐(0) 编辑
摘要: http://www.tuicool.com/articles/qaaA3i TODO 阅读全文
posted @ 2015-07-10 12:47 穆穆兔兔 阅读(965) 评论(0) 推荐(0) 编辑
摘要: Compare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1 string2Ints(const string& str) { vector rtn; ... 阅读全文
posted @ 2015-07-10 11:31 穆穆兔兔 阅读(184) 评论(0) 推荐(0) 编辑
摘要: http://www.knockgate.com/archives/550 阅读全文
posted @ 2015-07-09 17:55 穆穆兔兔 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 题目描述输入一个整数,输出该数二进制表示中1的个数。其中负数用补码表示。class Solution {public: int NumberOf1(int n) { int cnt = 0; while(n) { ... 阅读全文
posted @ 2015-07-09 16:24 穆穆兔兔 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 桶排序,由于num中的数字肯定在[min,max]区间内,所以根据抽屉原理,假设num中有n个数字,则最大的gap必然要大于dis=(max-min)/(n-1),所以我们可以把num所在的范围分成等间隔的区间,相邻区间内的元素之间的最大差值,即为要寻找的gap。TODO 阅读全文
posted @ 2015-07-09 15:58 穆穆兔兔 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 转http://blog.163.com/yuyang_tech/blog/static/216050083201382055821953/与合并排序,堆排序,快速排序等基于比较的排序算法不同,计数排序,以及基数排序、桶排序是用非比较的一些操作来确定排序顺序的,计数排序、基数排序、桶排序是三种以线性... 阅读全文
posted @ 2015-07-09 15:49 穆穆兔兔 阅读(437) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 84 下一页