码迷,mamicode.com
首页 >  
搜索关键字:node    ( 27491个结果
UVa409_Excuses, Excuses!(小白书字符串专题)
解题报告 字典树爆。 #include #include #include using namespace std; int k,e,num[100],cnt; struct node { int v; node *next[26]; }; node *newnode() { node *p=new node; p->v=0; int i; ...
分类:其他好文   时间:2014-07-31 20:46:07    阅读次数:216
linux centos6.2 node mongo 配置开机自启动
#!/bin/bash### BEGIN INIT INFO# Provides: xiyoulib# Required-Start: $all# Required-Stop: $all# Default-Start: 2 3 4 5# Default-Stop: 0 1 6# Sh...
分类:系统相关   时间:2014-07-31 20:40:57    阅读次数:274
Node.js安装备忘录
一、准备工作Node.js下载地址 http://nodejs.org/download/Current version:v0.10.29二、平台的选择 2.1 Windows平台 根据自己平台是32位的还是64位,选择下载不同的.msi安装程序。 安装很简单,只要一步步点下去就完成安...
分类:Web程序   时间:2014-07-31 19:43:07    阅读次数:305
Trie树 模板
#include #include #include #define MAX 27typedef struct node{ int v; struct node *next[MAX];}Trie;Trie *root;void creatTrie(char *str){ int i...
分类:其他好文   时间:2014-07-31 16:23:26    阅读次数:212
SGU 119
欧几里得- -要分N种情况- -#include#includeusing namespace std;int gcd(int x,int y){if (y==0) return x;return gcd(y,x%y);}struct node{ int x,y; friend ...
分类:其他好文   时间:2014-07-31 16:18:27    阅读次数:156
[LeetCode 题解]: Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:其他好文   时间:2014-07-31 16:08:26    阅读次数:283
node.js适用的场景
概述:NodeJS宣称其目标是“旨在提供一种简单的构建可伸缩网络程序的方法”,那么它的出现是为了解决什么问题呢,它有什么优缺点以及它适用于什么场景呢? 本文就个人使用经验对这些问题进行探讨。 一. NodeJS的特...
分类:Web程序   时间:2014-07-31 13:43:36    阅读次数:224
HDU 1710 Binary Tree Traversals(二叉树)
题目地址:HDU 1710 已知二叉树先序和中序求后序。 #include #include int a[1001], cnt; typedef struct node { int date ; node *lchild , *rchild ; }*tree; int getk(int ch,int ino[],int is,int n) { for(int i =...
分类:其他好文   时间:2014-07-31 13:25:46    阅读次数:225
Redis集群搭建最佳实践
要搭建Redis集群,首先得考虑下面的几个问题; Redis集群搭建的目的是什么?或者说为什么要搭建Redis集群? Redis集群搭建的目的其实也就是集群搭建的目的,所有的集群主要都是为了解决一个问题,横向扩展。 在集群的概念出现之前,我们使用的硬件资源都是纵向扩展的,但是纵向扩展很快就会达到一个极限,单台机器的Cpu的处理速度,内存大小,硬盘大小没办法...
分类:其他好文   时间:2014-07-31 13:17:56    阅读次数:347
Cocos2d-x 3.2 学习笔记(七)Scene And Transition
Scene 场景。是一个抽象的概念,仅被用作Node(节点)的一个子类.Scene(场景)和Node(节点)几乎相同,不同的是Scene的默认锚点在屏幕的中心.关于场景,不得不提的是场景之间的切换!效果挺炫的!下面看看33种切换效果,可以根据需要选择和扩展。#ifndef __SceneTest__...
分类:其他好文   时间:2014-07-31 12:56:36    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!