/**根据完美二叉树或者非完美二叉树都可以,利用左右子树的根节点的next节点信息来连接next*/public void
connect(TreeLinkNode root){ if(root==null) return; //利用父节点的next...
分类:
其他好文 时间:
2014-05-22 03:03:39
阅读次数:
183
Delete node in linked list in O(1).
分类:
其他好文 时间:
2014-05-22 00:05:51
阅读次数:
190
问题:主窗口刷新,子窗口闪烁解决方案:主窗口创建时,传WS_CLIPCHILDREN
分类:
其他好文 时间:
2014-05-21 22:44:58
阅读次数:
209
#include
#include
typedef int elemType;
typedef struct Node{//定义单链表节点类型
elemType data;
Node *next;
}Node,*linkList;
//初始化链表,单链表的头指针为空
int initList(linkList &L)
{
L= (Node *)malloc(sizeof(Node));...
分类:
其他好文 时间:
2014-05-21 11:19:08
阅读次数:
228
WebStorm
8 with IdeaVim
plugin
vim, sublime
sublime加上node插件。
nide
Brackets
vim
+ jshint2.vim
eclipse
Visual
Studio 2013 + NTVS(Node.js
Tools for Visual Studio)
notepad++
atom.io
No...
分类:
Web程序 时间:
2014-05-21 09:24:23
阅读次数:
333
Nginx担当WebSockets代理英文原文:http://nginx.com/blog/websocket-nginx/作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszsWebSocket 协议提供了一种创建支持客户端和服务端实时双向通信Web应用程序的方法。作为HTML5规范的一部分,WebSockets简化了开发Web实时通信程序的难度。目前主流的...
分类:
Web程序 时间:
2014-05-21 07:54:34
阅读次数:
457
很多人在项目中使用Webservice,只是知道如何发布Webservice,如何调用Webservice,但真要论其来龙去脉,还真不一定清楚。
一切一切还要从我们伟大的sun公司规范说起。
JAVA 中共有三种WebService 规范,分别是JAXM&SAAJ、JAX-WS(JAX-RPC)、JAX-RS。
下面来分别简要的介绍一下这三个规范。针对JDK...
分类:
编程语言 时间:
2014-05-21 07:27:31
阅读次数:
466
链表结点类型定义:1 class Node {2 public:3 int data = 0;4
Node *next = nullptr;5 6 Node(int d) {7 data = d;8 }9 };快行指针(runner)技巧:同时...
分类:
编程语言 时间:
2014-05-21 04:26:19
阅读次数:
444
#include#include#includetypedef int Item;typedef
struct node* PNode;typedef struct node{ Item data; PNode next;}Node;typedef
struct{ PNode fr...
分类:
其他好文 时间:
2014-05-21 04:20:54
阅读次数:
219
DescriptionA rooted tree is a well-known data
structure in computer science and engineering. An example is shown below:In the
figure, each node is lab...
分类:
其他好文 时间:
2014-05-21 03:23:51
阅读次数:
296