双向链表(插入,删除,追加,正反向遍历,查找。。。)
#include
#include
using namespace std;
class List
{
public:
List(void) : m_head(NULL), m_tail(NULL), m_size(0){}
~List(void)
{
for(Node* node = m_head; m_head; m_head = node)
{
node = m_he...
分类:
其他好文 时间:
2014-09-14 19:21:27
阅读次数:
230
1.什么是npmnpm是Node.js的包管理器,它允许开发人员在Node.js的应用程序中创建,共享,重用模块。之前我们通过node的官网的安装程序安装了Node.js,那么npm就已经装好了的。既然npm是Node.js的包管理器,那么什么是包呢?包:包是一个文件夹,将模块封装起来,用于发布,更...
1.安装Nodejs:去这里下载并安装。2.打开cmd,运行npm,node应该会有输出东西3.如果在window上运行Node.js的npm报Error: ENOENT, stat 'C:\Users\xxx\AppData\Roaming\npm'在C:\Users\xxx\AppData\Ro...
分类:
Web程序 时间:
2014-09-14 12:38:07
阅读次数:
197
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-09-13 20:08:35
阅读次数:
179
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space? 1 ...
分类:
其他好文 时间:
2014-09-13 20:03:55
阅读次数:
205
1. [代码][C/C++]代码 /*** @todo c版基于链表的插入排序* @author Koma**/#include#includetypedef struct node{ int data; struct node *next;}LNode, *LinkList;/*** 创建...
分类:
其他好文 时间:
2014-09-13 17:05:05
阅读次数:
147
/*dlist.h*/
#ifndef DList_H
#define DList_H
typedef int Item;
typedef struct Node * PNode; //节点指针
typedef PNode Position; //节点位置
/*定义节点类型*/
typedef struct...
分类:
编程语言 时间:
2014-09-13 09:24:25
阅读次数:
229
document方法:getElementById(id)返回指定结点的引用getElementsByTagName_r(name)返回文档中所有匹配的元素的集合createElement_x(name)创建指定类型的新结点createTextNode(text)创建一个纯文本结点element方法...
分类:
其他好文 时间:
2014-09-13 09:21:34
阅读次数:
167
一、ansible简介ansible是个什么东西呢?官方的title是“AnsibleisSimpleITAutomation”——简单的自动化IT工具。这个工具的目标有这么几项:让我们自动化部署APP;自动化管理配置项;自动化的持续交付;自动化的(AWS)云服务管理。二、ansible工作过程三、ansible安装1.控制..
分类:
其他好文 时间:
2014-09-13 03:02:05
阅读次数:
432
多台机器\config\elasticsearch.yml 文件修改cluster.name设置统一的集群名如cluster.name: win-es-001node.name 设置当前Node名称node.name: "win-da-013"如果没有办法自发现,可以查看日志,看启动IP是否正确,如...
分类:
其他好文 时间:
2014-09-13 00:37:34
阅读次数:
321