LeetCode做题笔记Addtwonumbers:给定一个数集合和一个数,已知集合中有两个数的和是给定数,求这两个加数的index方法1:暴力,n^2时间复杂度,不推荐方法2:快速排序nlogn。按集合里数的两倍与target的大小关系对分。对每一个第一部分的数,在另外一个部分二分搜索第二个数:5..
分类:
其他好文 时间:
2014-12-31 11:29:39
阅读次数:
138
上一篇我们介绍了什么是集成包,并且将集成包进行导入,今天我们将介绍如何利用已经导入的IP包(集成包)进行部署,并实现SCO与SCOM集合(下图红色为部署中,紫色为实施完成,蓝色为计划中):1、我们打开SCO01上的DesignerServer,新建一个Runbook并命名为SCOM:2、接着我们右..
分类:
其他好文 时间:
2014-12-31 06:25:53
阅读次数:
136
二分法的题,题目一般是在一个有序或者有序打乱的array里找一个target,或者在array里找一个数。这种题型的解题方式可以提炼出来一个套路,如下: int low = 0 ; int high = num.length-1 ; int mid = 0 ; ...
分类:
其他好文 时间:
2014-12-31 06:16:26
阅读次数:
214
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:100 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];
分类:
移动开发 时间:
2014-12-30 16:42:32
阅读次数:
239
file system.img./out/host/linux-x86/bin/simg2img out/target/product/msm8610/system.img system.raw.imgmkdir system_newsudo mount -t ext4 -o loop system...
分类:
其他好文 时间:
2014-12-30 15:02:47
阅读次数:
167
The question:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices ...
分类:
其他好文 时间:
2014-12-30 07:01:44
阅读次数:
170
The Problem:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices o...
分类:
其他好文 时间:
2014-12-30 07:00:19
阅读次数:
201
上一篇我们介绍了什么是集成包,本篇我们将介绍如果将导入的集成包进行部署并设置,最终交付使用(下图红色为部署中,紫色为实施完成,蓝色为计划中):1、我们打开SCO01上的DeploymentServer,找到左侧集成包,右键选择第二项:2、接着我们在欢迎界面上点击下一步:3、选择上..
分类:
其他好文 时间:
2014-12-30 01:47:31
阅读次数:
174
【js语法相关】
遍历对象或数组obj,执行函数context.iterator,函数返回false表示break
cc.each(obj, iterator, context)
从源对象拷贝所有属性到目标对象,并返回目标对象
cc.extend(target, src0, src1..)
cc.isFunction(obj)
cc.isNumber(obj)
cc.isString(obj)...
分类:
Web程序 时间:
2014-12-29 23:04:01
阅读次数:
225
Combination SumGiven a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thes...
分类:
其他好文 时间:
2014-12-29 22:56:46
阅读次数:
207