Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2014-09-10 09:26:30
阅读次数:
198
最近找工作,免不了看CC150 刷 LeetCode 来练手,练习之余也向各路大神 系统并且深入的学习、巩固一下算法知识。一. 线性表1. 数组 Remove Duplicates from Sorted Array Remove Duplicates from Sorted Array II .....
分类:
其他好文 时间:
2014-09-10 08:21:50
阅读次数:
246
Problem Description:
Given a collection of integers that might contain duplicates, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution se...
分类:
其他好文 时间:
2014-09-09 21:35:29
阅读次数:
281
PTP简介在通信网络中,许多业务的正常运行都要求网络时钟同步,即整个网络各设备之间的时间或频率差保持在合理的误差水平内。网络时钟同步包括以下两个概念:l时间同步:也叫相位同步(Phase synchronization),是指信号之间的频率和相位都保持一致,即信号之间的相位差恒为零。l频率同步(Fr...
分类:
其他好文 时间:
2014-09-09 19:57:09
阅读次数:
234
Problem Description:
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
For example,
[1,1,2] have the following unique permutations:
[1,1,2...
分类:
其他好文 时间:
2014-09-09 16:17:29
阅读次数:
200
Reference article : How to hide an entry in the Add/Remove Programs applet?In Wix source files, set property ARPSYSTEMCOMPONENT = 1 would do this, for...
insert p: 在p+1的位置插入v,然后 v前面的正数的个数= -v前面的负数的个数 ,这样找到的位置就是 -v的插入位置remove v: 因为可以记录每个v的节点标号,所以直接操作。query v:同remove。开始时,用优先队列来维护当前最小的v值,TLE。然后用线段树模拟了一个...
分类:
其他好文 时间:
2014-09-09 15:53:49
阅读次数:
305
Original link: http://www.winhelponline.com/articles/15/1/How-to-hide-an-entry-in-the-AddRemove-Programs-applet.html------------------------Following ...
分类:
移动开发 时间:
2014-09-09 15:43:18
阅读次数:
147
四舍六入五成双http://baike.baidu.com/view/1245064.htm?fr=aladdin 四舍六入五成双是一种比较精确比较科学的计数保留法,是一种数字修约规则。 对于位数很多的近似数,当有效位数确定后,其后面多余的数字应该舍去,只保留有效数字最末一位,这种修约(舍入)规.....
分类:
编程语言 时间:
2014-09-09 15:17:48
阅读次数:
209
IOS管理文件和目录1、常见的NSFileManager文件方法-(NSData*)contentsAtPath:path//从一个文件读取数据-(BOOL)createFileAtPath:pathcontents:(NSData*)dataattributes:attr//向一个文件写入数据-(BOOL)removeItemAtPath:patherror:err//删除一个文件-(BOOL)moveItemAtPath:fr..
分类:
移动开发 时间:
2014-09-09 13:48:31
阅读次数:
211