leetcode上的题目
摘要:1. 数组a[i], 求数组output,其中output[i]=product(a[j] | j!=i)void f(int *a, int *output, int n){ for(int i=0;i s; node *current = root; while(!s.empty()||current) { if(current) { s.push(current); current = current->left; } else { cur...
阅读全文
posted @
2013-10-29 16:28
zReachzer
阅读(211)
推荐(0)
C#学习教程
摘要:2013.10.20开始学习C#1. 单继承;2. 值类型: 基本:整数(byte,short,int, long), 布尔类型,实数,字符型; 结构体; 枚举类型;3. 引用型数据: 类、代表、接口、数组4. 类 域、属性、方法;5. 代表: 安全的C#"指针“ delegate int MyDelegate();using System;delegate int MyDelegate();class P{ public int Fun1(){return 0;} public static int Fun2(){return 0;}}class Q{ static...
阅读全文
posted @
2013-10-20 18:30
zReachzer
阅读(191)
推荐(0)
数据库
摘要:第一范式: 每列都是原子性,不可拆分;第二范式: 每列都完全依赖于主键,而不是主键的不一部分;第三范式: 非主属性都不依赖于非主键列;BCNF范式(第三范式的子集):非主属性不依赖于主键的子集;
阅读全文
posted @
2013-10-13 08:50
zReachzer
阅读(90)
推荐(0)
读写信号量
摘要:读写信号量,读写互斥,可以多读seg R, W;int read_count=0;void read(){ P(R); if(read_count==0) { P(W); } read_count++; V(R); reading... P(R); read_count--; if(read_count==0) { V(W); } V(R);}void write(){ P(W); writing... V(W);}
阅读全文
posted @
2013-10-12 21:28
zReachzer
阅读(167)
推荐(0)