完全二叉树——若设二叉树的深度为h,除第 h 层外,其它各层 (1~h-1) 的结点数都达到最大个数,第 h 层所有的结点都连续集中在最左边,这就是完全二叉树。解题思路:满二叉树有一个性质是节点数等于2^h-1(h为高度),所以可以这样判断节点的左右高度是不是一样,如果是一样说明是满二叉树,就可以用...
分类:
编程语言 时间:
2015-09-07 22:37:44
阅读次数:
178
select MAX(age) from T_Studentselect MIN(age) from T_Studentselect MAX(age) as maxage, MIN(age) as minage, AVG(age), COUNT(*) from T_Studentselect COU...
分类:
数据库 时间:
2015-09-07 22:31:19
阅读次数:
253
ddif=/dev/hdaof=/root/p_w_picpathcount=1bs=512count=1指仅拷贝一个块;bs=512指块大小为512个字节
分类:
其他好文 时间:
2015-09-07 19:41:59
阅读次数:
137
代理可分为两类: 静态代理和动态代理1.静态代理:/*定义一个业务接口*/public interface Count { // 查看账户方法 public void queryCount(); // 修改账户方法 public void updateCoun...
分类:
编程语言 时间:
2015-09-07 19:31:15
阅读次数:
172
还真是一波未平一波又起,又出现了这个问题,详情如下:-[__NSCFString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x17deba00*** Terminating...
分类:
编程语言 时间:
2015-09-07 15:36:15
阅读次数:
930
//插入批量数据,可启用事务- (void)insertDataWithCount:(NSInteger)count isUseTransaction:(BOOL)isUse{ if (isUse) { //手动启用事务 BOOL isError = NO; @try { //写可能出现异常的代码 ...
分类:
数据库 时间:
2015-09-07 12:40:50
阅读次数:
186
组合:public class Solution { static int count = 0; static void findSo(String soFar,String rest) { if(soFar.length() == 3){ coun...
分类:
其他好文 时间:
2015-09-07 10:50:16
阅读次数:
213
通过 ISuperObject.AsObject 可获取一个 TSuperTableString 对象.TSuperTableString 的常用属性: count、GetNames、GetValuesvar jo: ISuperObject; jts: TSuperTableString;begi...
分类:
Web程序 时间:
2015-09-07 09:39:16
阅读次数:
270
1、题目名称 Count Primes(统计质数数量) 2、题目地址 https://leetcode.com/problems/count-primes/ 3、题目内容 英文:Count the number of prime numbers less than a non-negative number, n. 中文:统计正...
分类:
其他好文 时间:
2015-09-07 00:43:16
阅读次数:
202
无聊,用php写几个排序算法,算法介绍请移步这里,这里使用php实现了几个简单的,如下//选择排序function selection_sort($arr){ $len = count($arr); if($len $arr[$j]){ $min = ...
分类:
编程语言 时间:
2015-09-07 00:21:51
阅读次数:
212