BFS+状态压缩,做了很多状态压缩了。今晚把八数码问题给搞定了。 1 #include 2
#include 3 #include 4 #include 5 using namespace std; 6 7 typedef struct node_st
{ 8 int x, y, ...
分类:
其他好文 时间:
2014-06-02 17:14:38
阅读次数:
232
1.地址:http://nodejs.org/download/进入后按不同的操作系统下载相应的安装包2.下载后运行即可。
可在命令行输入 node -v 和 npm -v 查看是否安装成功 3.npm(Node包管理器)安装,更新,卸载包 (1)全局模式下载,进入命令行模式输入:
n...
分类:
Web程序 时间:
2014-06-02 08:14:44
阅读次数:
293
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?借用博...
分类:
其他好文 时间:
2014-06-02 07:32:33
阅读次数:
291
Node.js学习笔记【1】入门(服务器JS、函数式编程、阻塞与非阻塞、回调、事件、内部和外部模块)...
分类:
Web程序 时间:
2014-06-02 07:06:34
阅读次数:
231
函数指针即为指向一个函数的指针。要定义一个函数指针,只需将需要指向的函数的原型中函数名的前面加一个"*"号即可。比如,函数foo的原型为:int
foo(int, char, struct node);那么要建立一个指向foo的指针,名为bar,就可以这样写:int (*bar)(int, char...
分类:
其他好文 时间:
2014-06-02 06:15:10
阅读次数:
218
typedef struct node//该结构体代表一个结点{ int data;
//结点的数据域 struct node *next; //结点的指针域}lnode,*linklist;
//定义一个结构体变量和指向结构体的指针//用头插法创建一个链表linklist ...
分类:
其他好文 时间:
2014-06-02 05:50:31
阅读次数:
341
层(Layer)的生命周期函数有如下:init()。初始化层调用。onEnter()。进入层时候调用。onEnterTransitionDidFinish()。进入层而且过渡动画结束时候调用。onExit()。退出层时候调用。onExitTransitionDidStart()。退出层而且开始过渡动画时候调用。cleanup()。层对象被清除时候调用。 提示 层(Layer)继承于节点(Node...
分类:
其他好文 时间:
2014-06-02 02:31:05
阅读次数:
337
Node即学即用
REPL(Read-Evaluate-Print-Loop)
console.log
.clear .help .exit
require('http') createServer
聊天服务器
tcp服务器
require(‘net')
on connection
on data...
分类:
其他好文 时间:
2014-06-01 18:20:16
阅读次数:
464
Node.js是一个能够让javascript执行在server上的平台,既是语言又是平台。Node.js是一个实时web应用程序的平台。Node.js有强大的包管理器npm,故node相关软件安装用npm命令安装。
分类:
Web程序 时间:
2014-06-01 16:46:44
阅读次数:
268
前言:例行公事,有些人可能不太了解elasticsearch,下面搜了一段,大家瞅一眼。Elasticsearch是一款分布式搜索引擎,支持在大数据环境中进行实时数据分析。它基于ApacheLucene文本搜索引擎,内部功能通过ReSTAPI暴露给外部。除了通过HTTP直接访问Elasticsearch,还可以通过支..
分类:
编程语言 时间:
2014-06-01 13:47:42
阅读次数:
328