/******************************************************************//**Returns the control block of a file page, NULL if not found.@return block, N...
分类:
其他好文 时间:
2015-11-25 21:49:33
阅读次数:
277
dispatch_source_t的作用:监听某些事件,当这些事件发生的时候,他就会把这些事件的回调的block提交到某些队列上变执行。@abstract* Creates a new dispatch source to monitor low-level system objects and a...
分类:
其他好文 时间:
2015-11-24 21:12:44
阅读次数:
210
上面这种方法是很low逼的,用了这种方法工资就涨不上去你信不信?下面这种也是...能不能用一个稍微有点逼格的方法?addEventListener() 还能解绑听说这个方法对IE8无法向下兼容?没关系,我们还有attachEvent/detachEvent
分类:
编程语言 时间:
2015-11-23 13:24:26
阅读次数:
105
二分法查找需要序列有序#include#includeint binary_search(int *array,int n,int e){ assert(array&&n>0); int low=0,high=n-1,mid; while(lowe) ...
分类:
其他好文 时间:
2015-11-22 20:11:16
阅读次数:
87
两个有序数组找出相同数据,要求最简单的算法复杂度。class Program { static void Main(string[] args) { int Low = 0; int[] m = new int[] { 2...
分类:
编程语言 时间:
2015-11-19 18:14:46
阅读次数:
139
转载:http://www.cnblogs.com/mingmingruyuedlut/archive/2011/08/17/2143062.html想到了快速排序,于是自己就用C#实现了快速排序的算法: 快速排序的基本思想:分治法,即,分解,求解,组合 .分解:在 无序区R[low..high]中...
分类:
编程语言 时间:
2015-11-19 00:34:44
阅读次数:
195
static bool whilehalf(int n) { int low = 0; //低位 int hight = arr.Length - 1; //高位 int c = (hight + low)/2...
分类:
其他好文 时间:
2015-11-16 22:28:35
阅读次数:
173
Swap(LinkNode low,LinkNode high)//交换两个结点{ low->prior->next=high;high->prior=low->prior; high->next->prior=low; low->next=high->next; high->next=low; l...
分类:
其他好文 时间:
2015-11-13 19:03:46
阅读次数:
173
加法部分运行成功。乘法仍存在问题,找机会解决,欢迎大家指正。还有一个问题,C语言函数传地址如何传,是否不需要我这样多次申请内存空间?欢迎交流。代码如下: 1 #include 2 #include 3 4 typedef struct PolyNode *Poly;//定义多项式结构体类...
分类:
其他好文 时间:
2015-11-12 19:50:45
阅读次数:
286
一:Search in Sorted Array二分查找,可有重复元素,返回target所在的位置,只需返回其中一个位置,代码中的查找范围为[low,high),左闭右开,否则容易照成死循环。代码:class Solution {public: int search(vector& nums,...
分类:
其他好文 时间:
2015-11-12 13:35:36
阅读次数:
326