//先放这里 还没太懂#include #include #include using namespace std;const int INF = 0x3f3f3f3f;const int MAX = 1100;int up[15][15];int down[15][15];char s[MAX],...
分类:
其他好文 时间:
2015-11-04 21:19:57
阅读次数:
170
Scenario Master – Master replication MasterA is a client facing server MasterB is a warm standby server (read only) MasterB restarted abruptly and when instances were braught back up MasterA (it’...
分类:
其他好文 时间:
2015-11-04 15:00:34
阅读次数:
187
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:
其他好文 时间:
2015-11-04 13:01:19
阅读次数:
144
1、webstorm快捷键:IntelliJ-Idea 的快捷键Ctrl+/或Ctrl+Shift+/注释(//或者/*…*/)Shift+F6重构-重命名Ctrl+X删除行Ctrl+D复制行Ctrl+G查找行Ctrl+Shift+Up/Down代码向上/下移动。F2或Shift+F2高亮错误或警告...
分类:
Web程序 时间:
2015-11-04 10:06:47
阅读次数:
221
一基本实现思路:基于View类实现自定义View –MyImageView类。在使用View的Activity类中完成OnTouchListener接口,实现对MotionEvent事件的监听与处理,常见的MotionEvent事件如下:ACTION_DOWN事件,记录平移开始点ACTION_UP事件,结束平移事件处理ACTION_MOVE事件,记录平移点,计算与开始点距离,实现Bitmap平移,...
分类:
移动开发 时间:
2015-11-04 02:07:34
阅读次数:
388
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?判断一个链表是否存在环,维护快慢指针就可以,如果有环那么快指针一定会追上慢指针,代码...
分类:
其他好文 时间:
2015-11-04 00:32:06
阅读次数:
212
1。手机上网的过程 普通浏览器上网过程 浏览器Web服务器 手机上网过程 手机WAP网关(UP.Link Server)集成HDML,WML的Web服务器 * UP指Unwired Planet公司,其UP.Phone浏览器为手机浏览器的事实标准,以下内容都基于该标准。 *普通web页面...
分类:
移动开发 时间:
2015-11-03 22:51:59
阅读次数:
263
今天碰到了个郁闷的问题,svn执行clean up命令时报错“Previous operation has not finished; run 'cleanup' if it was interrupted”。无论你到那个父层次的目录执行“clean up“,都是报一样的错。执行cleanup时候,...
分类:
其他好文 时间:
2015-11-03 19:18:00
阅读次数:
217
设置的是两台虚拟机IP地址分别为:192.168.33.11、192.168.33.12。 通过下面的命令设置虚拟IP:192.168.33.149。 sudo ifconfig eth1:0 192.168.33.149 netmask 255.255.255.0 up 通过如下命令删除虚拟IP: sudo ...
分类:
系统相关 时间:
2015-11-03 12:40:11
阅读次数:
307
A DN is comprised of a series of RDNs (Relative Distinguished Names) found by walking UP the tree (DIT) to itsroot (or suffix or base)and is written L...
分类:
编程语言 时间:
2015-11-03 10:41:15
阅读次数:
369