One pass in-place solution: all swaps.class Solution {public: /** * @param nums: a vector of integers * @return: nothing */ void partit...
分类:
其他好文 时间:
2015-08-29 15:20:27
阅读次数:
162
一、 依赖动态库的动态库libfun.so依赖动态库libtest.so(libfun.so动态库里的函数intnothing()调用了libtest.so里的intmytest()函数),而main.exe又调用了libfun.so的函数int nothing()。下面两种方式都能工作:1> 常用...
分类:
系统相关 时间:
2015-08-27 21:09:44
阅读次数:
193
使用此VBS代码创建Excel:
Set oexcel=CreateObject("excel.application")
oexcel.Workbooks.Add()
oexcel.ActiveWorkbook.SaveAs("d:\xx.xls")
'
oexcel.Quit
Set oexcel=Nothing但创建出的Excel打开时会提示“您尝试打开的文件 的格式与文件扩展名指定的格式...
分类:
其他好文 时间:
2015-08-25 19:39:16
阅读次数:
206
注:此文首发于 《程序员》杂志 2008 年 7 月刊。 从 Shard 到 Sharding “Shard” 这个词英文的意思是”碎片”,而作为数据库相关的技术用语,似乎最早见于大型多人在线角色扮演游戏(MMORPG)中。”Sharding” 姑...
分类:
数据库 时间:
2015-08-20 19:17:56
阅读次数:
339
在做输入信息页面的时候,经常会遇到键盘挡住输入框或者将一些控件顶起的情况,android为此提供了一系列的的配置参数供选择,可以在androidmanufist.xml的对应Activity的windowSoftInputMode属性中进行配置:
详细说明这四个参数:
int
SOFT_INPUT_ADJUST_NOTHING
...
分类:
移动开发 时间:
2015-08-20 18:58:46
阅读次数:
357
Problem DescriptionDuring summer vacation,Alice stay at home for a long time, with nothing to do. She went out and bought m pokers, tending to play po...
分类:
其他好文 时间:
2015-08-17 06:26:56
阅读次数:
200
Description Have you heard the fact "The base of every normal number system is 10" ? Of course, I am not talking about number systems like Stern Brockot Number System. This problem has nothing to do...
分类:
其他好文 时间:
2015-08-15 15:00:32
阅读次数:
281
Description
Have you heard the fact “The base of every normal number system is 10” ? Of course, I am not talking about number systems like Stern Brockot Number System. This problem has nothing to do w...
分类:
其他好文 时间:
2015-08-15 11:57:34
阅读次数:
143
第一次接触redhat系统,安装软件时,发现没有ubuntu的apt-get包管理器,自带的yum包管理器又什么都找不到,网上搜了好久,终于把yum配置好了,感谢博主们~使用redhat系统自带的yum时,总会报错nothing to do,因为redhat的yum是收费的,未注册不可使用。因此我们...
分类:
其他好文 时间:
2015-08-14 18:49:43
阅读次数:
183
集中式与分布式事务的另一个重要的不同点在于它们各自所需关注的错误的属性上。在集中式系统中,错误都是要么不错要么全错(all-or-nothing),也就是说要么系统正常工作事务正常处理,要么系统出错不会有任何事务完成。但是在分布式系统中,可能出现部分失败(partial failures)的情况,某些节点正常工作但是其他一些节点出错了。 这种局部失败的情况正是造成分布式系统中很多难解的问题的根源。...
分类:
其他好文 时间:
2015-08-08 00:01:50
阅读次数:
173