题目如下:
S-Trees
A Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function
.Each path of the S-tree begins at the
root node and consists ...
分类:
其他好文 时间:
2014-06-05 11:04:37
阅读次数:
248
题目如下:
Tree
You are to determine the value of the leaf node in a given binary treethat is the terminal node of a path of least value from the root of thebinary tree to any le...
分类:
其他好文 时间:
2014-06-05 05:27:11
阅读次数:
268
题目:
链接:点击打开链接
题意:
中文题
算法:
思路:
赤裸裸的最小生成树。。
代码:
#include
#include
using namespace std;
struct node{
int u,v,w;
} e[110];
int p[110];
int n,m,sum,ans;
int cmp(node...
分类:
其他好文 时间:
2014-06-05 03:50:23
阅读次数:
232
接着上一篇
我用的开发工具是sublime
打开之前创建的工程。
打开www
修改并添加代码
#!/usr/bin/env node
var debug = require('debug')('my-application');
var app = require('../app');
var io=require("socket.io").li...
分类:
Web程序 时间:
2014-06-03 04:02:54
阅读次数:
308
node,express开发环境等安装假设已经搞好了。
justhacker@justhacker-ThinkPad-Edge-E440:~/projects/nodejs$ express -e chattingnode
create : chattingnode
create : chattingnode/package.json
create : chattin...
分类:
Web程序 时间:
2014-06-03 02:31:27
阅读次数:
285
1、Maximum Depth of Binary Tree
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 leaf node.
clas...
分类:
其他好文 时间:
2014-06-02 23:13:22
阅读次数:
290
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
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
1. Node 类型 js 中所有的节点类型都继承自 Node
类型,因此所有节点类型都共享着相同的基本属性和方法。 nodeType属性,用于表明节点的类型。节点类型由在 Node 类型中定义的下列12个数值常量表示,
任何节点类型必居其一: nodeNam...
分类:
Web程序 时间:
2014-05-31 19:31:02
阅读次数:
383