两台机器:172.16.91.101 172.16.91.107在91.101上增加虚拟ip,92网段的ifconfig eth0:1 172.16.92.2 netmask 255.255.255.0 up由于不再同一个网段需要添加路由(与vip交互的机器上):增加路由:route add -ne...
分类:
其他好文 时间:
2014-07-16 23:21:32
阅读次数:
284
Input输入按键Input.GetKey(“up”)=Input.GetKey(KeyCode.UpArrow)按住键盘上键Input.GetKeyDown(“up”)按下键盘上键Input.GetKeyUp(“up”)放开键盘上键(KeyCode.UpArrow)为键码Input.GetButt...
分类:
其他好文 时间:
2014-07-16 23:21:18
阅读次数:
317
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?
分类:
其他好文 时间:
2014-07-10 11:10:26
阅读次数:
302
大家好/HI everyone,Thanks for viewing my blogs, starting to use cnblogs to write blogs about programming. Hope I can keep writing and growing up together...
分类:
其他好文 时间:
2014-07-10 10:05:59
阅读次数:
197
QEMU Networking QEMU has a number of really nice ways to set up networking for its guests. It can be a little bewildering to figure out how each of th...
分类:
Web程序 时间:
2014-07-10 00:32:27
阅读次数:
499
实现的功能:1个物体以一定的速度转向目标物体Quaternion TargetRotation = Quaternion.LookRotation(m_Target.transform.position - transform.position, Vector3.up);transform.rota...
分类:
其他好文 时间:
2014-07-07 21:57:01
阅读次数:
177
Problem Description:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equ...
分类:
其他好文 时间:
2014-07-07 19:03:39
阅读次数:
165
Visio有许多强大的Mash-up混聚功能,使它可以轻松集成到SharePoint 2010中。...
分类:
Web程序 时间:
2014-06-28 08:58:05
阅读次数:
314
题目:
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the ta...
分类:
其他好文 时间:
2014-06-28 08:17:11
阅读次数:
305
首先双连通缩点建立新图(顺带求原图的总的桥数,其实由于原图是一个强连通图,所以桥就等于缩点后的边)
此时得到的图类似树结构,对于新图求一次直径,也就是最长链。
我们新建的边就一定是连接这条最长链的首尾,这样就将原图的桥减少了直径个。
#include
#include
#include
#include
#include
#include
using namespace std;
#...
分类:
其他好文 时间:
2014-06-28 07:18:36
阅读次数:
278