码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
LeetCode: Balanced Binary Tree [110]
【题目】 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1. 【题意】 判断二叉树是否是平衡二叉树 【思路】 平衡二...
分类:其他好文   时间:2014-06-20 11:02:54    阅读次数:173
二叉树先序中序非递归算法
一直想要写的 二叉树 中序 先序 后序遍历算法 递归的太简单了,就不写了。关键是非递归版本。 先序: 我自己的版本: void RootPreTraverse(Node* p) { Stack S; while(S not empty) { p=S.top(); S.pop(); Show(p); if(p->right!=null) S...
分类:其他好文   时间:2014-06-20 10:55:49    阅读次数:279
使用批处理命令设置windows系统的ip地址和dns
找到对应的网卡名称 使用命令:ipconfig ipconfig/all Windows IP Configuration Host Name . . . . . . . . . . . . : D501-4-3 Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . ....
分类:Windows程序   时间:2014-06-20 09:12:20    阅读次数:443
Balanced Binary Tree
题目 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node...
分类:其他好文   时间:2014-06-20 09:02:56    阅读次数:232
Nodejs Express框架
好了,今天我们开始分享Node. learn to share . yes , it is ,especially share your happiness with others. 好了,进入正题. var express  = require('express'); var app = express.createServer(); app.get('/',func...
分类:Web程序   时间:2014-06-07 15:24:26    阅读次数:230
LeetCode: Populating Next Right Pointers in Each Node [116]
【题目】 Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be...
分类:其他好文   时间:2014-06-07 14:28:36    阅读次数:215
【入门必备】最佳的 Node.js 学习教程和资料书籍
http://www.cnblogs.com/lhb25/p/node-js-tutorials-for-beginners.html不错,记录一下
分类:Web程序   时间:2014-06-07 09:31:58    阅读次数:238
讯易前端问题
技术场景前端获取数据通过Socket IO与Node.js交互,其交互过程基于异步,前端页面将要获取的数据通过指令发给Node Server,Node再将根据指令去调用Gearman相应的接口,当Gearman执行结束,会将数据发送给Node,Node再将数据发给前端页面。下面是开发中遇到的一些问题...
分类:其他好文   时间:2014-06-07 07:42:28    阅读次数:160
Windows下Node.js开发环境搭建
1、http://nodejs.org/下载node.js运行环境安装2、打开DOS命令行 .安装express框架1>npm install express 末尾显示如下为安装成功.安装mysql模块1npm install mysql 末尾显示如下为安装成功3、www.jetbrains.co....
分类:Windows程序   时间:2014-06-07 06:20:13    阅读次数:299
leetcode--Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他好文   时间:2014-06-05 13:26:37    阅读次数:335
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!