循环有序 一共有以下两种情况 第一种 / / // / / 条件:(A[mid] >= A[low]) ,low~mid 二分,mid~high 递归第二种 / / / / / / 条件:(A[mid] A[mid])12 ...
分类:
其他好文 时间:
2014-06-19 06:46:36
阅读次数:
303
Dictionary list = new Dictionary(); list.Add("d", 1); //3.0以上版本 foreach (var item in list) { ...
分类:
其他好文 时间:
2014-06-15 21:54:38
阅读次数:
248
${item_index?if_exists+1}//获取循环下标值,默认是从0开始的. ${item.userName?if_exists}
分类:
其他好文 时间:
2014-06-15 20:54:59
阅读次数:
346
Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric...
分类:
其他好文 时间:
2014-06-15 18:55:36
阅读次数:
188
题目:Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ...
分类:
其他好文 时间:
2014-06-15 00:53:09
阅读次数:
314
SQL中有多种多样的函数,下面将为您介绍SQL中的ISNULL函数,包括其语法、注释、返回类型等,供您参考,希望对您学习SQL能够有所帮助。ISNULL使用指定的替换值替换 NULL。语法ISNULL ( check_expression , replacement_value )参数check_e...
分类:
数据库 时间:
2014-06-14 18:24:08
阅读次数:
235
#ifndef __MEM_POOL_H__#define __MEM_POOL_H__typedef struct tagMemItem{ int nSize; int nUsed; void* addr;}MEM_ITEM_S;/********************...
分类:
其他好文 时间:
2014-06-14 15:52:04
阅读次数:
256
界面中有一个按钮使用这样的样式:会发现按钮被点击之后颜色未变,原来是press="true"的位置颠倒了,改为如下即可:也就是两个Item标签更换一下位置。其实这就有点类似于switch语句,最后item没有属性就代表default
分类:
移动开发 时间:
2014-06-14 15:28:27
阅读次数:
385
数组的恒等 === 在文档中是这么说的:
Check whether two arrays or subarrays share the same storage and elements by comparing them with the identity operators (=== and !==).
数组的恒等 === 判断即判断两个数组所指向的元素存储区是否相同。
但 XCode 6 测试下来,结果大为迥异:var a = [1, 2, 3]; a === a 其结果却为 false,...
分类:
其他好文 时间:
2014-06-14 11:39:39
阅读次数:
280
//在外面加一圈非0,再广搜
#include
#include
using std::queue;
int t, w, h, arr[962][1442];
int mov[][2] = {-1, 0, 0, 1, 1, 0, 0, -1};
queue Q;
bool check(int x, int y){
if(x h + 1 || y > w + 1)
return 0;...
分类:
其他好文 时间:
2014-06-14 10:06:32
阅读次数:
276