GUID(全局统一标识符)是指在一台机器上生成的数字,它保证对在同一时空中的所有机器都是唯一的。通常平台会提供生成GUID的API。生成算法很有意思,用到了以太网卡地址、纳秒级时间、芯片ID码和许多可能的数字。GUID的唯一缺陷在于生成的结果串会比较大。
GUID永远是方便的对于程序开发的各个方面....
分类:
其他 时间:
2014-05-05 22:40:02
收藏:
0 评论:
0 赞:
0 阅读:
437
1. 浮点数的二进制格式. 浮点数的二进制格式如下, 分为 3 个部分, 即 sign (符号位),
exponent (指数位), 以及 significand (有效数位). 如下图所示: single-precision floating
point(单精度浮点数), 4 字节, 共 32 ....
分类:
其他 时间:
2014-05-05 22:40:37
收藏:
0 评论:
0 赞:
0 阅读:
585
通过虚拟机软件,你可以在一台物理计算机上模拟出另一台或多台虚拟的计算机,这些虚拟机完全就像真正的计算机那样进行工作,例如你可以安装操作系统、安装应用程序、访问网络资源等等。对于你而言,它只是运行在你物理计算机上的一个应用程序,但是对于在虚拟机中运行的应用程序而言,它就是一台真正计算机。因此,当你在虚...
分类:
其他 时间:
2014-05-05 22:41:26
收藏:
0 评论:
0 赞:
0 阅读:
435
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他 时间:
2014-05-05 22:43:33
收藏:
0 评论:
0 赞:
0 阅读:
396
http://www.programcreek.com/2011/10/java-class-instance-initializers/
分类:
其他 时间:
2014-05-05 22:43:02
收藏:
0 评论:
0 赞:
0 阅读:
417
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他 时间:
2014-05-05 22:42:28
收藏:
0 评论:
0 赞:
0 阅读:
457
Problem
Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are
inspected in this problem:Hash Table. One hash set is the words di...
分类:
其他 时间:
2014-05-05 22:43:59
收藏:
0 评论:
0 赞:
0 阅读:
586
Link:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list,
swap every two adjacent nodes and return its head.For example,Given1->2-...
分类:
其他 时间:
2014-05-05 22:44:56
收藏:
0 评论:
0 赞:
0 阅读:
366
很锻炼DP/recursive思路的一道题,个人感觉DP/recursive算是比较难写的题目了。这道题解法的巧妙之处在于巧用-1,并且使用临时存储,节省了很多开支。这道题同时也在Career
Cup上面出现过这道题我两次调试通过,第一次错是因为input{}, output false, expe...
分类:
其他 时间:
2014-05-05 22:44:24
收藏:
0 评论:
0 赞:
0 阅读:
397
遇到的问题:input{1,1,1}, output{1,1}, expected{1},
原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next,
这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
分类:
其他 时间:
2014-05-05 22:46:23
收藏:
0 评论:
0 赞:
0 阅读:
403
Link:http://oj.leetcode.com/problems/reverse-nodes-in-k-group/Given a linked
list, reverse the nodes of a linked listkat a time and return its modifie...
分类:
其他 时间:
2014-05-05 22:45:55
收藏:
0 评论:
0 赞:
0 阅读:
415
Link:http://oj.leetcode.com/problems/reverse-linked-list-ii/Reverse a linked
list from positionmton. Do it in-place and in one-pass.For example:Given1...
分类:
其他 时间:
2014-05-05 22:45:21
收藏:
0 评论:
0 赞:
0 阅读:
350
最近几天,由于IDC机房设备的问题,导致OA连接3天一天挂2次,真是把我抑闷着,最事一个烦事特别多好不容易等了一个五一假期,也不得空,把最近一些网友反馈的OA的一些功能及BUG进行修复,主要是以下几个大问题1、增加同步备注信息到路由的选项2、增加用户到期后,是否可以使用其他套餐充值卡充值3、增加用户...
分类:
其他 时间:
2014-05-05 22:49:51
收藏:
0 评论:
0 赞:
0 阅读:
344
世界上有 10 种人, 一种是懂二进制的, 一种是不懂二进制的. well, 我知道这很老掉牙,
但也许可以用来做一个不错的开头 ^_^.计算机表示一个整数(包括正整数和负整数)的方法有 3 种, 原码, 反码和补码.以十进制整数 5 为例.
转换为二进制形式是 101. 如果将它存储在一个 Byt...
分类:
其他 时间:
2014-05-05 22:49:20
收藏:
0 评论:
0 赞:
0 阅读:
602
前段时间,一连发现好几个用户的路由器里面的连接数过高,我仔细查看了一下,发现有一个通用的问题就是:用户有连接很多LAN口的连接,都是指向内网IP有些甚至是255.255.255.255的目标地址,这样直接导致用户连接数过高,无法正常访问其他的网络资源我初步分析,有可能是以下几种情况,一种是病毒,另一...
分类:
其他 时间:
2014-05-05 22:52:42
收藏:
0 评论:
0 赞:
0 阅读:
398
最近看tomcat源码,这类接口多的有点眩,整理出来看一下。(基于tomcat4)javax.servlet.ServletRequset接口,和org.apache.catalina.Request接口,有什么联系?其实就是对Request不同层面上的定义。一、首先看下javax.servlet....
分类:
其他 时间:
2014-05-05 22:53:14
收藏:
0 评论:
0 赞:
0 阅读:
574
# Definition for a binary tree node# class
TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right
...
分类:
其他 时间:
2014-05-05 22:55:39
收藏:
0 评论:
0 赞:
0 阅读:
366
Problem
Link:http://oj.leetcode.com/problems/longest-consecutive-sequence/This problem
is a classical problem where we can reduce the running time by ...
分类:
其他 时间:
2014-05-05 22:54:38
收藏:
0 评论:
0 赞:
0 阅读:
488
新博客
分类:
其他 时间:
2014-05-05 22:54:05
收藏:
0 评论:
0 赞:
0 阅读:
384
1.实现boost库xml基本操作2.解决boost对xml中中文乱码问题3.实现普通字符串和宽字符串的傻瓜切换(模仿tchar.h)4.代码运行环境为VS2010,需要导入boost库才能正常运行5.VS2010运行时可能会发生错误。例如:cl.exe
或者 cvtres.exe 报错。 解决办法...
分类:
其他 时间:
2014-05-05 22:56:35
收藏:
0 评论:
0 赞:
0 阅读:
694