题目:Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space
分类:
其他好文 时间:
2016-02-04 11:37:34
阅读次数:
132
http://blog.csdn.net/ssihc0/article/details/7742323 Account={balance=0}; --新建了一个对像,他有一个属性balance function Account:new(o) --这里的 :new(o) 中的冒号,代码可以省略self
分类:
其他好文 时间:
2016-02-04 11:34:19
阅读次数:
118
原文地址:http://blog.163.com/shexinyang@126/blog/static/136739312201491011492263/ 拿jquery-easyui-1.2.6举例 所有的图标在哪,如何引用, 所有的图标在 jquery-easyui-1.2.6\themes\i
分类:
其他好文 时间:
2016-02-04 11:34:49
阅读次数:
285
public class MD5{ /* *四个链接变量 */ private final int A=0x67452301; private final int B=0xefcdab89; private final int C=0x98badcfe; private final int D=0x
分类:
其他好文 时间:
2016-02-04 11:35:26
阅读次数:
212
初始化配置 C代码 #配置使用git仓库的人员姓名 git config --global user.name "Your Name Comes Here" #配置使用git仓库的人员email git config --global user.email you@yourdomain.exampl
分类:
其他好文 时间:
2016-02-04 11:32:40
阅读次数:
203
这题大概是,整数模9973乘法群?然后存在乘法逆元。 于是题目要求$A \div B \pmod {9973} $其实就相当于求$A \times B^{-1}\pmod {9973} $。 只要求出B的逆元就OK了。 计算模n下的乘法逆元可以用用扩展欧几里得算法求解,即解下面的线性同余方程: $$
分类:
其他好文 时间:
2016-02-04 11:33:24
阅读次数:
136
该函数一个四个参数public static Matrix PerspectiveFovLH ( float fieldOfViewY, float aspectRatio, float znearPlane, float zfarPlane )其中参数 fieldOfViewY 表示视场在 Y 方
分类:
其他好文 时间:
2016-02-04 11:34:29
阅读次数:
189
接下来就是干货了。。。我之前打字有的时候有错别字。请原谅。。。 对于命令行要知道。。。cd命令。。。因为是干货。就不细讲了。。。你可以百度,如果cd都不知道。。。请去默默的做一个没有电的工作。 首相,我们要在磁盘上建立一个两级的文件夹,如果嫌弃麻烦的。。。你可以建立一个。。。如果不耐烦的请不用建立。
分类:
其他好文 时间:
2016-02-04 11:33:25
阅读次数:
151
Problem Description The God of sheep decides to pixelate some pictures (i.e., change them into pictures with mosaic). Here's how he is gonna make it:
分类:
其他好文 时间:
2016-02-04 11:33:02
阅读次数:
282
1 //生成1~n的排列,按字典序由小到大排列 2 void print_permutation(int n,int* A,int cur) 3 { 4 if(cur==n){ //递归边界 5 for(int i=0;i<n;++i) printf("%d",A[i]); 6 printf("\n
分类:
其他好文 时间:
2016-02-04 11:31:33
阅读次数:
126
compare files line by line diff [OPTION]... FILES diff /PATH/TO/OLDFILE /PATH/TO/NEWFILE > /PATH/TO/PATCH_FILE -u:使用unfied机制,即显示要修改的行的上下文,默认为3行;
分类:
其他好文 时间:
2016-02-04 11:31:28
阅读次数:
127
apt-get 命令 sudo apt-get update sudo apt-get install tree sudo apt-get -y install tree //跳过系统提示,直接安装。 sudo apt-get remove tree sudo apt-get autoremove
分类:
其他好文 时间:
2016-02-04 11:30:54
阅读次数:
138
http://blog.csdn.net/ssihc0/article/details/7742421 代码收藏了,以后用的到 --多重继承 local function search(k,plist) for i=1,#plist do local v=plist[i][k] -- 取一个基类 i
分类:
其他好文 时间:
2016-02-04 11:32:27
阅读次数:
140
原文如下: bat脚本:自动压缩n天前的文件-中原小伙-ChinaUnix博客http://blog.chinaunix.net/uid-24946452-id-1651762.html 磁盘空间有限,又不能删除,只能定期对旧文件进行压缩以尽量节省空间。在windows2003上做这件事情比较简单,
分类:
其他好文 时间:
2016-02-04 11:31:06
阅读次数:
146
原文网址:http://blog.sina.com.cn/s/blog_46dac66f01000b57.html 寻找最好的笔记软件:三强篇(EverNote、Mybase、Surfulater) v1.0 作者:SuperboyAC 编译:xbeta 本系列还有:海选篇、三强篇、梦想篇、结论、篇
分类:
其他好文 时间:
2016-02-04 11:29:54
阅读次数:
266
有时候备库滞后于主库很长时间了,而主库的归档日志已经不存在了,此时的日志间隔如何消除那,很多人选择重建备库,这个是很麻烦的,尤其当主库数据量很大的时候,此时我们还有另外一种选择,那就是使用增量数据库备份来前滚备库,消除日志间隔,具体作法如下:1.备库查看丢失的归档时的scn号idle> select
分类:
其他好文 时间:
2016-02-04 11:30:51
阅读次数:
133