码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
LeetCode 543: Diameter of Binary Tree
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */... ...
分类:其他好文   时间:2017-09-03 09:55:45    阅读次数:130
Merge Two Binary Trees(easy)
这个题被标记为easy,还是挺简单的,但因为我才入门,其实也碰到了一些问题 题目要求: Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two ...
分类:其他好文   时间:2017-09-03 01:08:36    阅读次数:125
etcd集群的部署
node1192.168.56.173 node2192.168.56.174 node3192.168.56.200 node*为主机名称 [root@node1~]#cat/etc/redhat-release CentOSLinuxrelease7.2.1511(Core) [root@node1~]#https://github.com/coreos/etcd/releases/download/v3.0.15/etcd-v3.0.15-linux-amd64.tar.gz tarxfetc..
分类:其他好文   时间:2017-09-03 00:19:01    阅读次数:268
数据结构
void init() { for(int i = 1;i <= n;i++) pre[i] = i; } int findd(int x) 递归 { return pre[x] == x?x:findd(pre[x]); } void join(int a,int b) { int x = fin ...
分类:其他好文   时间:2017-09-02 23:28:41    阅读次数:423
字符串
//普通 void getnext1(char *s) { int i = 0,j = -1,len = strlen(s); ne[0] = -1; while(i < len) { if(j == -1 || s[i] == s[j]) ne[++i] = ++j; else j = ne[j] ...
分类:其他好文   时间:2017-09-02 23:28:25    阅读次数:386
微信小程序 --01
微信小程序开发基础 -- 开发前的准备 缘由 1月9日张小龙微信小程序正式上线,因为微信,所以小程序从诞生开始就头戴巨大的光环,很多的团队,公司以及开发的个体都眼巴巴的盯着这个小程序。而那个时候我却在全力以赴的研究node,所以也没有仔细的研究这个风风火火的小程序。本以为此生无甚交集,但是最近公司却 ...
分类:微信   时间:2017-09-02 23:27:34    阅读次数:412
node 当中的 cnpm和npm 的区别和使用
在安装nodejs之后会有npm命令 打开命令符输入之后 输入node -v(记得-v前空格)查看版本信息 如果显示出来了就说明安装成功 然后 npm 可以安装node插件 cnpm使用的是淘宝网的镜像http://npm.taobao.org 输入以下内容 获取淘宝的镜像 :npm install ...
分类:其他好文   时间:2017-09-02 22:29:09    阅读次数:128
Node.js 实现串行化流程控制
为了演示如何实现串行流程控制,我们准备做个小程序,让它从一个随机选择的RSS预定源中获取一片标题和URL,并显示出来。 RSS预定源列表放在rss_feeds.txt文件中,内容如下: 运行程序前我们需要安装两个模块:request模块是个经过简化的HTTP客户端,你可以用它获取RSS数据。html ...
分类:Web程序   时间:2017-09-02 22:28:59    阅读次数:239
redis集群的搭建
集群搭建:至少需要三个master 第一步:创建以一个文件夹redis-cluster,然后分别在下面创建6个文件夹: (1)mkdir -p /usr/local/redis-cluster (2)mkdir 7001、mkdir 7002、mkdir 7003、mkdir 7004、mkdir ...
分类:其他好文   时间:2017-09-02 20:46:01    阅读次数:120
NodeJS 第一章 Node的安装与配置
1. Mac OS X安装Node.js node.js官方专门提供了Mac OS X的安装包,你可以在http://nodejs.org找到Download链接, 然后选择Macintosh Installer,下载安装包。下载完成后运行安装包, 据提示完成安装。Node.js和npm会被安装到/ ...
分类:Web程序   时间:2017-09-02 19:59:58    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!