DFS 深度优先BFS 广度优先DFS或者BFS都是在联通区域内遍历节点的方法用在二叉树上DFS有preOreder,inOrder,postOrder,BFS就是层次遍历。在二叉树上的节点,只有两个选择,left 和right,即,对于每一个节点,in 有1个, out 有两个,有向图在矩阵的节点...
分类:
其他好文 时间:
2014-07-01 21:32:46
阅读次数:
278
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2014-07-01 13:01:01
阅读次数:
177
Combinations:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ ...
分类:
其他好文 时间:
2014-07-01 12:58:20
阅读次数:
212
package com.print.xingzhuang;public class Print_SanJiaoXing { public static void main(String[] args) { System.out.println("------------第一行5个...
分类:
其他好文 时间:
2014-07-01 12:32:56
阅读次数:
194
1. 应用场景不同 ref主要是函数内部对函数外部的值进行改变 out主要是内部为外部变量赋值,一般用于函数有多个返回值的地方2. 初始化方式不同 ref使用之前必须先初始化,而out不需要初始化 原因:ref为引用,所有必须要先"有",才能引用 out是内部为外部赋值,不需要初始...
分类:
其他好文 时间:
2014-07-01 11:01:09
阅读次数:
213
编译 windows上编译lua源码
cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.ex...
分类:
其他好文 时间:
2014-07-01 07:21:11
阅读次数:
199
#include
#include
#include
static char out_ip[15] = "52.0.10.188";
static int out_port = 8888;
int main()
{
char sSendBuf[2049], sRecvBuf[2049];
int connfd = 0, iRet = 0, iSend...
分类:
其他好文 时间:
2014-07-01 06:31:44
阅读次数:
212
cas官网http://www.ja-sig.org/products/cas/。
ok,现在开始本文的重点内容讲解,先来了解一下cas 实现single sign out的原理,如图所示:
CAS" border="0" height="345" width="588">
图一
CAS"...
分类:
其他好文 时间:
2014-07-01 06:29:53
阅读次数:
224
#include
#include
#include
static char out_ip[15] = "52.0.10.188";
static int out_port = 8888;
int main()
{
char sSendBuf[2049], sRecvBuf[2049];
int connfd = 0, iRet = 0, iSend...
分类:
其他好文 时间:
2014-06-30 18:56:37
阅读次数:
247
编译 windows上编译lua源码
cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.ex...
分类:
其他好文 时间:
2014-06-30 18:18:38
阅读次数:
156